mvtsa.evaluation.segmentation_stability#

mvtsa.evaluation.segmentation_stability(segmenter, X, n_runs=20, noise=0.05, block=0.9, bandwidth=None, random_state=None)[source]#

Stability of a segmentation under perturbations.

Every run adds Gaussian noise of relative level noise (times the standard deviation of every variable) and, if block is given, segments a random contiguous block of that fraction of the series (change points are mapped back to global time). The boundary frequency at t is the fraction of runs with a change point within bandwidth samples of t.

Returns a dict with frequency (T,), the reference segmentation on the clean data, the support of each of its change points (frequency at the change point) and the mean support as stability.

Examples using mvtsa.evaluation.segmentation_stability#

Is the segmentation stable?

Is the segmentation stable?