fuzzyclust.models#
Clustering for model identification.
Fuzzy clusters in the product space of inputs and outputs are local models: each cluster becomes a rule whose antecedent is the projection of the cluster onto the inputs and whose consequent is the local linear model hidden in the cluster. This sub-package collects the algorithms that exploit this view:
ModifiedGG– modified Gath–Geva clustering with axis-parallel Gaussian antecedents and local linear (SISO or MIMO) consequents; the clustering engine behind the Takagi–Sugeno model;TakagiSugeno– the user-facing regressor: Takagi–Sugeno model identified byModifiedGGor by Gustafson–Kessel clustering in the product space with projected antecedents;FuzzyCRegression– fuzzy c-regression models (switching regression, Hathaway & Bezdek 1993), clusters are hyperplanes;SupervisedFuzzyClassifier– supervised fuzzy clustering whose rules carry class-probability consequents (Abonyi & Szeifert 2003);supervised_fuzzy_partition(),FuzzyPartitionDiscretizer– per-feature fuzzy partitions derived from supervised clustering, for decision-tree induction (Abonyi 2010);HingingHyperplaneTree– binary regression tree with hinging hyperplane nodes identified by fuzzy c-regression (Kenesei & Abonyi 2013);select_features_by_separability()– Fisher interclass-separability based backward feature elimination of the fuzzy classifier;simulate_free_run()– free-run simulation of NARX models built withfuzzyclust.preprocessing.make_regressors();data generators
make_*and plot helpersplot_*.
Takagi–Sugeno identification by modified Gath–Geva clustering, fuzzy c-regression, supervised fuzzy classifiers, fuzzy partitions for trees, hinging-hyperplane trees.
Classes#
|
Modified Gath–Geva clustering: clusters are interpretable Takagi–Sugeno rules. |
|
Takagi–Sugeno (TS) fuzzy model with rules extracted from fuzzy clusters. |
|
Fuzzy c-regression models (FCRM): clusters are regression hyperplanes. |
|
Fuzzy rule-based classifier identified by supervised Gath–Geva type clustering. |
|
Supervised fuzzy discretization of continuous features. |
|
Binary regression tree with hinging-hyperplane nodes identified by fuzzy c-regression. |
|
One node of a |
Functions#
|
Free-run (parallel) simulation of a NARX model. |
|
Weighted least-squares estimate of local model parameters. |
|
Backward feature elimination by the Fisher interclass separability of the rules. |
|
Per-feature fuzzy partitions derived from supervised fuzzy clustering. |
|
Ruspini-type (equidistant triangular) partition of every feature, the unsupervised baseline. |
|
Evaluate the fuzzy sets of one feature at the values |
|
Jaccard-type similarity \(S=|A\cap B|/|A\cup B|\) of two fuzzy sets sampled on a common grid. |
|
Gaussian antecedent membership functions \(A_{ij}(x_j)\) of every rule, one panel per input. |
|
One-input Takagi–Sugeno model: data, local linear models, model output and firing strengths. |
|
Fuzzy sets of one feature of a fitted |
|
Prediction surface (filled contours) of a two-input hinging-hyperplane tree with its hinges. |
|
Decision regions of a two-input classifier, optionally with the rule centers and antecedent ellipses. |
|
Samples of the sinc function, the classic static benchmark of fuzzy modeling. |
|
A continuous piecewise-linear function of two variables (sum of two hinges). |
Noise-free value of the function behind |
|
|
Switching regression data: samples of several lines over a common input range. |
|
The second-order nonlinear benchmark plant of Abonyi, Babuška and Szeifert (2002). |
|
Nonlinear component \(f(y(k-1), y(k-2))\) of |
|
A two-input two-output nonlinear process with operating-point-dependent gains. |
|
Two overlapping classes, each a mixture of two Gaussian blobs (XOR layout). |
|
Three classes separated by thresholds on two features, plus one irrelevant feature. |