Detector
DummyRegularAnomalies
Dummy change point detector which detects a change point every x steps.
Naive method that can serve as benchmarking pipeline or API test.
Detects a change point every step_size location indices. The first change point is detected at location index step_size, the second at 2 * step_size, and so on.
Quickstart
python
from sktime.detection.dummy import DummyRegularAnomalies
estimator = DummyRegularAnomalies(step_size=2)Parameters(1)
- step_sizeint, default=2
- The step size at which change points are detected.
Examples
>>> import pandas as pd
>>> from sktime.detection.dummy import DummyRegularAnomalies
>>> y = pd. Series ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ])
>>> d = DummyRegularAnomalies (step_size = 3)
>>> yt = d. fit_transform (y)