Detector
PyODDetector
Transformer that applies outlier detector from pyOD.
Quickstart
python
from sktime.detection.adapters import PyODDetector
estimator = PyODDetector(estimator, labels='indicator')Parameters(1)
- estimatorPyOD estimator
See
https://pyod.readthedocs.io/en/latest/documentation for a detailed description of all options.
Examples
>>> import pandas as pd
>>> from sktime.detection.datagen import piecewise_normal_multivariate
>>> X = pd. DataFrame (piecewise_normal_multivariate (
... means = [[1, 3 ], [4, 5 ]],
... lengths = [3, 4 ],
... random_state = 10),
... )
>>> from sktime.detection.adapters._pyod import PyODDetector
>>> from pyod.models.ecod import ECOD
>>> model = PyODDetector (ECOD ())
>>> model. fit_transform (X) labels 0 0 1 1 2 0 3 0 4 0 5 0 6 0