fuzzyclust.relational.plot_series_clusters#

fuzzyclust.relational.plot_series_clusters(X, labels, medoids=None, ax=None, alpha=0.35, max_per_cluster=None)[source]#

Time series drawn in the color of their cluster, medoid series emphasized.

Parameters:
Xarray_like of shape (n_series, length)
labelsarray_like of shape (n_series,)
medoidsarray_like of int, optional

Indices of the medoid series (drawn in black on top).

axmatplotlib Axes or sequence of Axes, optional

One axes for all clusters, or one axes per cluster.

alphafloat, default=0.35
max_per_clusterint, optional

Draw at most this many series per cluster.

Returns:
axmatplotlib Axes or ndarray of Axes

Examples using fuzzyclust.relational.plot_series_clusters#

Fuzzy c-medoids on dynamic-time-warping dissimilarities of time series

Fuzzy c-medoids on dynamic-time-warping dissimilarities of time series