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: NeighborMergeSegmenter

Off-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_segmentsint, optional
thresholdfloat, optional

Stop when the dissimilarity \(1-s\) of the most similar pair exceeds the threshold.

n_componentsint or float

Components of the local models (a float is resolved on the whole series).

lagsint

Dynamic PCA lags.

similarity{“krzanowski”, “lambda”, “eros”}
mean_weightfloat

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_sizeint