mvtsa.segmentation.SparseGaussianStateSegmenter#

class mvtsa.segmentation.SparseGaussianStateSegmenter(n_states=3, window=3, alpha=0.05, beta=50.0, max_iter=10, random_state=0)[source]#

Bases: BaseSegmenter

TICC-style state detection with sparse Gaussian window models.

Every sample t is represented by the stacked window \([x_{t-w+1},\dots,x_t]\); every state is a Gaussian whose precision matrix is estimated by the graphical lasso (Friedman, Hastie and Tibshirani, 2008), which exposes the conditional dependencies of the variables across the window. States are assigned by dynamic programming with a penalty beta for every switch (Hallac et al., 2017), and the models are re-estimated until the assignment is stable.

Parameters:
n_statesint
windowint
alphafloat

Graphical-lasso sparsity.

betafloat

Switching penalty (larger = longer segments).

max_iterint
random_stateint, optional

Examples using mvtsa.segmentation.SparseGaussianStateSegmenter#

Recurring operating states

Recurring operating states