Example gallery#
Every example generates or loads its own data – synthetic series whose segments, regimes, classes or warpings are known, simulated chemical processes (a pH neutralization reactor and the methyl methacrylate polymerization reactor), and three real collections of the UEA & UCR archives – explains the method, draws the result and ends with a short study of the main parameter. The same scripts produce the figures of the book; the code printed in the book is extracted from them.
First steps: series, segmentations, representations, PCA models#
Cost-based segmentation: costs, search strategies, number of segments#
Latent-variable segmentation: PCA, dynamic PCA, recursive PCA, fuzzy and Fisher segmentation#
Fuzzy segmentation with the modified Gath–Geva algorithm
Informative segments for parameter estimation (MMA polymerization)
Probabilistic, profile-based and state-based segmentation#
Predictive homogeneity with any scikit-learn model
Elastic similarity: DTW and its relatives#
A family of elastic measures on Cylinder–Bell–Funnel
Soft-DTW: a differentiable alignment and its uncertainty
Correlation-based and segment-level warping#
When the information is in the correlation structure
Real data: Japanese vowels and Riemannian local distances
Clustering time series, segments and trajectories#
Partitional clustering: k-means, k-Shape, k-medoids
Clustering segments: recurring patterns across series