Back to models
Detector

DummyRegularAnomalies

Dummy change point detector which detects a change point every x steps.

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)