mvtsa.segmentation.KrzanowskiSegmenter#
- class mvtsa.segmentation.KrzanowskiSegmenter(n_segments=None, threshold=None, n_components=2, lags=0, similarity='krzanowski', mean_weight=0.0, initial_size=30, scale=True)[source]#
Bases:
NeighborMergeSegmenterOff-line bottom-up segmentation by the similarity of neighbouring (dynamic) PCA models.
The series is cut into windows; adjacent segments are merged in the order of decreasing PCA similarity, i.e. increasing \(1-s_{PCA}\) (Krzanowski, 1979), which compares the hyperplanes of the local models (Dobos and Abonyi, 2012).
- Parameters:
- n_segments
int,optional - threshold
float,optional Stop when the dissimilarity \(1-s\) of the most similar pair exceeds the threshold.
- n_components
intorfloat Components of the local models (a float is resolved on the whole series).
- lags
int Dynamic PCA lags.
- similarity{“krzanowski”, “lambda”, “eros”}
- mean_weight
float Optional weight of a mean-shift term (the normalized squared distance of the segment means) added to the subspace dissimilarity, so that operating ranges that differ only in their level are also separated.
- initial_size
int
- n_segments