Migrating from the MATLAB toolbox#
The MATLAB Fuzzy Clustering and Data Analysis Toolbox passed data and
param structures to functions and returned a result structure.
fuzzyclust turns every algorithm into a scikit-learn estimator.
MATLAB |
fuzzyclust |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Behavioral differences (details in Appendix B of the book):
the MATLAB functions tested the optional fields with
exist('param.m')==1, which is false for a field of a structure, som,e,ro,gammaandbetaalways took their default values;fuzzyclusthonors every constructor argument;the Gustafson–Kessel covariance regularization follows the published formula of Babuška, van der Veen and Kaymak;
the Gath–Geva distance is evaluated in the log domain, so distant samples do not overflow;
random restarts (
n_init) and k-means++ seeding are available, and an iteration cap (max_iter) is added;plotting is separated from fitting.