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, ifblockis given, segments a random contiguous block of that fraction of the series (change points are mapped back to global time). The boundary frequency attis the fraction of runs with a change point withinbandwidthsamples oft.Returns a dict with
frequency(T,), the reference segmentation on the clean data, thesupportof each of its change points (frequency at the change point) and the mean support asstability.