mvtsa.clustering.KShape#

class mvtsa.clustering.KShape(n_clusters=3, max_iter=30, n_init=2, random_state=None)[source]#

Bases: _ClusterMixin

k-Shape clustering (Paparrizos and Gravano, 2015).

Series are z-normalized and resampled to a common length; the distance is the shape-based distance (SBD); centroids are extracted as the leading eigenvector of \(Q^{\mathsf T}S^{\mathsf T}SQ\) of the members aligned to the current centroid (per channel for multivariate data, with the shift shared by the channels).

Examples using mvtsa.clustering.KShape#

Partitional clustering: k-means, k-Shape, k-medoids

Partitional clustering: k-means, k-Shape, k-medoids