Clustering#

Clustering of time series, segments and trajectories.

Partitional, hierarchical, spectral, density-based, consensus, feature-based, segment and trajectory clustering.

Classes#

TimeSeriesKMeans([n_clusters, metric, ...])

k-means for time series.

KShape([n_clusters, max_iter, n_init, ...])

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

KMedoids([n_clusters, metric, max_iter, ...])

k-medoids by PAM (BUILD + SWAP) on a distance matrix.

FuzzyCMedoids([n_clusters, m, metric, ...])

Relational fuzzy c-medoids (Krishnapuram, Joshi, Nasraoui and Yi, 2001).

HierarchicalClustering([n_clusters, ...])

Agglomerative clustering on a distance matrix.

SpectralClustering([n_clusters, metric, ...])

Spectral clustering of time series.

DensityClustering([method, eps, ...])

DBSCAN or HDBSCAN on a time series distance matrix (label -1 = noise).

ConsensusClustering([clusterers, ...])

Evidence-accumulation consensus of several clusterings.

FeatureClustering([clusterer, features, ...])

Cluster series by feature vectors.

SegmentClustering([segmenter, n_clusters, ...])

Cluster the segments of a collection into recurring regimes.

TrajectoryClustering([method, k, eps, ...])

Clustering of objects moving in a common phase space.

Functions#

coassociation_matrix(partitions)

Fraction of partitions in which two objects share a cluster (noise labels -1 never co-occur).

neighborhood_preservation(trajectories[, k])

Mean Jaccard similarity of the k-nearest-neighbour sets of every pair of objects along time.