fuzzyclust.timeseries.plot_segmentation#

fuzzyclust.timeseries.plot_segmentation(model, X, t=None, features=None, feature_names=None, axes=None, boundaries=True, show='both')[source]#

Time plots of the variables with the fuzzy segments underneath.

The upper panels show the selected variables with the crisp segment borders model.boundaries_ as dashed lines and the samples colored by the hard segment label. The lower panel(s) show the normalized Gaussian memberships in time \(\beta_i(t_k)\) (the fuzzy segments) and/or the posterior memberships \(p(\eta_i\mid\mathbf{z}_k)\) that also depend on the observations.

Parameters:
modelfitted FuzzySegmentation
Xarray_like of shape (n_samples, n_features)
tarray_like of shape (n_samples,), optional

Time axis (default model.time_).

featuressequence of int, optional

Columns of X to draw (default: at most four).

feature_namessequence of str, optional
axessequence of matplotlib Axes, optional

len(features) + (1 or 2) axes sharing the x axis.

boundariesbool, default=True

Draw the crisp borders.

show{“both”, “time”, “posterior”}, default=”both”

Which membership panels to draw.

Returns:
axesndarray of matplotlib Axes

Examples using fuzzyclust.timeseries.plot_segmentation#

Fuzzy segmentation of a multivariate time series

Fuzzy segmentation of a multivariate time series