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:
- model
fittedFuzzySegmentation - Xarray_like
ofshape(n_samples,n_features) - tarray_like
ofshape(n_samples,),optional Time axis (default
model.time_).- featuressequence
ofint,optional Columns of
Xto draw (default: at most four).- feature_namessequence
ofstr,optional - axessequence
ofmatplotlibAxes,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.
- model
- Returns:
- axes
ndarrayofmatplotlibAxes
- axes