[BUG] PyODAdapter only returns decision_scores_ of train-set #1837
Labels
anomaly detection
Anomaly detection package
bug
Something isn't working
interfacing algorithms
Interfacing existing algorithms/estimators for other packages
Describe the bug
The PyODAdapter currently does not support predict() on test-data, only decision_scores_ on data classifier was fitted on is available.
https://pyod.readthedocs.io/en/latest/pyod.models.html#module-pyod.models.lof
(...)
decision_scores_numpy array of shape (n_samples,)
The outlier scores of the training data. The higher, the more abnormal. Outliers tend to have higher scores. This value is available once the detector is fitted.
(...)
I would expect to fit on train-data and predict on test-data.
Furthermore fit_predict of PyOD is deprecated and therefore should not be used by an adapter as to not elicit unexpected behaviour for persons versed with the underlying PyOD.
Output:
Steps/Code to reproduce the bug
Expected results
Ability to use test-sets and getting scores for the test-set returned, see below for comparison.
Actual results
Versions
No response
The text was updated successfully, but these errors were encountered: