mvtsa.segmentation.ClaSPSegmenter#

class mvtsa.segmentation.ClaSPSegmenter(width='auto', n_segments=None, k=3, threshold=0.75, min_size=None, normalize=True, center=True)[source]#

Bases: BaseSegmenter

Recursive segmentation by classification score profiles.

Parameters:
widthint or “auto”

Subsequence width ("auto": first autocorrelation peak).

n_segmentsint, optional

Maximal number of segments; otherwise splitting stops when no split reaches threshold.

kint

Neighbours of the kNN classifier.

thresholdfloat

Minimal classification score of an accepted split.

min_sizeint, optional

Minimal segment length (default 5 * width).

normalizebool

z-normalize the subsequences (shape-based, as in ClaSP); False also separates segments that differ only in level or amplitude.

centerbool

The profile scores splits between subsequences; with center the reported change point (and profile_) is moved by half a width, to the centre of the subsequences adjacent to the split, which removes a systematic bias of width/2 samples.

Attributes:
profile_array (T,)

Classification score profile of the whole series (first level).

width_int

Examples using mvtsa.segmentation.ClaSPSegmenter#

Shape changes: ClaSP and FLUSS

Shape changes: ClaSP and FLUSS