mvtsa.datasets.make_piecewise_stationary#

mvtsa.datasets.make_piecewise_stationary(n_segments=4, length=200, n_variables=3, change='mean', n_states=None, noise=1.0, vary=0.0, random_state=None)[source]#

Piecewise stationary Gaussian series.

Parameters:
change{“mean”, “variance”, “correlation”, “all”}

What differs between the states.

n_statesint, optional

Number of distinct states (segments cycle through them); default: one state per segment.

varyfloat

Relative variation of the segment lengths (0 = equal lengths).

Returns:
Xarray (T, n)
change_pointsarray
statesarray (n_segments,)

Examples using mvtsa.datasets.make_piecewise_stationary#

Costs and search strategies

Costs and search strategies

How many segments?

How many segments?

Bayesian on-line change point detection

Bayesian on-line change point detection

Predictive homogeneity with any scikit-learn model

Predictive homogeneity with any scikit-learn model

Consensus of segmentations

Consensus of segmentations

Segmentation of a data stream

Segmentation of a data stream

Is the segmentation stable?

Is the segmentation stable?

Benchmarking segmenters with statistical tests

Benchmarking segmenters with statistical tests