fuzzyclust.models.plot_local_models#

fuzzyclust.models.plot_local_models(model, X, y, ax=None, n_points=300, show_firing=True)[source]#

One-input Takagi–Sugeno model: data, local linear models, model output and firing strengths.

Parameters:
modelfitted TakagiSugeno or ModifiedGG with one input
Xarray_like of shape (n_samples, 1)
yarray_like of shape (n_samples,)
axmatplotlib Axes, optional
show_firingbool, default=True

Draw the normalized firing strengths on a twin axis.

Returns:
axmatplotlib Axes

Examples using fuzzyclust.models.plot_local_models#

Takagi–Sugeno model of a static nonlinearity: clusters become rules

Takagi–Sugeno model of a static nonlinearity: clusters become rules