mvtsa.segmentation.StateSegmenter#

class mvtsa.segmentation.StateSegmenter(segmenter=None, n_states=3, descriptor='gaussian', metric='gaussian_w2', linkage='average', distance_threshold=None, merge_adjacent=True, n_components=2, min_length=0.5)[source]#

Bases: BaseSegmenter

Segment-then-cluster state detection.

Parameters:
segmentersegmenter object

Any segmenter of the package (default: bottom-up with the Gaussian cost and n_segments=20).

n_statesint, optional

Number of states; alternatively distance_threshold.

descriptor{“gaussian”, “pca”, “mean”}
metricstr

See segment_distance_matrix().

linkage{“average”, “complete”, “single”, “ward”}

Agglomerative clustering of the segment models (Ward only with the Euclidean metric on means).

distance_thresholdfloat, optional
merge_adjacentbool

Merge consecutive segments that received the same state.

min_lengthint or float, optional

Segments shorter than this (default: half the mean segment length) do not take part in the clustering – they are typically transitions – and receive the state of the nearest cluster afterwards. A float is a fraction of the mean segment length.

Attributes:
base_segmentation_Segmentation
distance_matrix_array
linkage_matrix_array

SciPy linkage of the segment models (for dendrograms).

Examples using mvtsa.segmentation.StateSegmenter#

Recurring operating states

Recurring operating states

A one-page segmentation report

A one-page segmentation report

Grade transitions of a polymerization reactor

Grade transitions of a polymerization reactor