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:
BaseSegmenterRecursive segmentation by classification score profiles.
- Parameters:
- width
intor “auto” Subsequence width (
"auto": first autocorrelation peak).- n_segments
int,optional Maximal number of segments; otherwise splitting stops when no split reaches
threshold.- k
int Neighbours of the kNN classifier.
- threshold
float Minimal classification score of an accepted split.
- min_size
int,optional Minimal segment length (default
5 * width).- normalizebool
z-normalize the subsequences (shape-based, as in ClaSP);
Falsealso separates segments that differ only in level or amplitude.- centerbool
The profile scores splits between subsequences; with
centerthe reported change point (andprofile_) is moved by half a width, to the centre of the subsequences adjacent to the split, which removes a systematic bias ofwidth/2samples.
- width
- Attributes: