Repository navigation
Conversation
Centralize predict and fit_predict output validation for series and collection anomaly detectors. Add coverage for overridden _fit_predict implementations while preserving existing checks. Refs aeon-toolkit#2801 Co-authored with OpenAI GPT-6.1 Sol.
Compare fit_predict with fit followed by predict using identically seeded clones and deep_equals. Exclude LOF and PyODAdapter from equality checks while retaining their output validation. Validation: 66 passed, 4 skipped. Refs aeon-toolkit#2801 Co-authored with OpenAI GPT-6.1 Sol.
Thank you for contributing to
|
Did not ask for this, and don't think it should be done here if at all. As mentioned in surrounding discussion I'm not sure this test is applicable since any anomaly detectors of the same kind of LOF (in regards to supervised, unsupervised, semi-superivsed tags) will have the same skip required, because in the current framework that is the correct way to do it. |
Reference Issues/PRs
Fixes #2801.
Related: #2865
What does this implement/fix? Explain your changes.
predictandfit_predictoutput validation in the parent anomaly-detector checks, preserving series- and collection-specific output lengths._fit_predictimplementations, comparing both workflows using identically seeded clones anddeep_equals.PyODAdapterfrom equality only, retaining their output validation because LOF intentionally uses different in-sample and novelty scores.Validation: 66 passed, 4 skipped using:
uv run python -m pytest aeon/testing/tests/test_all_estimators.py \ -k "check_anomaly_detector_output or check_anomaly_detector_fit_predict_equality" \ -q -rs --reruns 0Ruff and Black also passed.
Does your contribution introduce a new dependency? If yes, which one?
No.
Any other comments?
Feedback is welcome on the consolidation and exclusion approach. The
PyODAdapterexclusion is class-wide, although equivalence depends on its wrapped model.PR checklist
For all contributions
[ENH]).Co-authored with AI assistance from OpenAI GPT-6.1 Sol. The changes have been reviewed by the author.