Fuzzy Clustering and Data Analysis in PythonThe fuzzyclust toolbox

Appendix A
API reference

This appendix lists every public class and function of fuzzyclust, sub-package by sub-package, with the first sentence of its docstring. The lists are generated from the __all__ attribute of each module by book/build_api_appendix.py, so they are complete by construction; the full signatures, parameters, and attributes are in the online documentation and in the docstrings (help(fuzzyclust.cluster.GK)). The shared constructor parameters, fitted attributes, and methods of all clustering estimators are described once in section 2.3. The notation of the docstrings is that of table 2.1.

A.1 fuzzyclust.base: Base class

Name

Kind

Description

BaseFuzzyClusterer

class

Abstract base of the prototype-based clustering algorithms

EPS

constant

Small constant added to squared distances before negative powers (10−10)

A.2 fuzzyclust.cluster: Partitioning algorithms

Name

Kind

Description

KMeans

class

Hard c-means (k-means) clustering with the fuzzyclust interface

KMedoids

class

Hard k-medoids clustering (prototypes are data points)

FCM

class

Fuzzy c-means clustering (Dunn, Bezdek)

GK

class

Gustafson–Kessel (GK) fuzzy clustering

GG

class

Gath–Geva (GG) fuzzy clustering

RegularizedFCM

class

Fuzzy c-means by entropy or quadratic regularization, with optional deterministic annealing

PolynomialFuzzifierFCM

class

Fuzzy c-means with the polynomial fuzzifier of Klawonn and Höppner

entropy_memberships

function

Memberships of the entropy-regularized c-means, μik ∝exp ⁡ (−Dik2∕λ)

quadratic_memberships

function

Memberships of the quadratically regularized c-means (Miyamoto and Umayahara)

polynomial_memberships

function

Memberships of fuzzy c-means with the polynomial fuzzifier (Klawonn and Höppner)

polynomial_fuzzifier

function

Polynomial fuzzifier g(μ) = 1−β 1+βμ2 + 2β 1+βμ of Klawonn and Höppner

SubtractiveClustering

class

Subtractive clustering (Chiu, 1994): cluster centers from the potential of the data points

MountainClustering

class

Mountain method (Yager and Filev, 1994): cluster centers from a mountain function on a grid

CompatibleClusterMerging

class

Compatible cluster merging: find the number of clusters by merging from a large start

cluster_similarity

function

Pairwise similarity of fuzzy clusters from their membership columns (fuzzy Jaccard index)

geometric_compatibility

function

Compatibility of cluster pairs from centers and covariances (Krishnapuram and Freg)

reference_fuzziness

function

Rescale an FCM-type partition obtained with exponent m to the one exponent m_ref would give

A.3 fuzzyclust.validity: Validity indices

Name

Kind

Description

partition_coefficient

function

Partition coefficient (Bezdek)

classification_entropy

function

Classification (partition) entropy (Bezdek)

modified_partition_coefficient

function

Modified partition coefficient (Davé, 1996)

partition_index

function

Partition index SC (Bensaid et al., 1996)

separation_index

function

Separation index S: Xie–Beni in its original form, with squared memberships (Xie and Beni, 1991)

xie_beni

function

Xie–Beni index (Xie and Beni, 1991)

fukuyama_sugeno

function

Fukuyama–Sugeno index (1989)

dunn_index

function

Dunn’s index (1974) on the hardened partition

alternative_dunn_index

function

Alternative Dunn index (ADI) of the MATLAB toolbox

silhouette

function

Mean silhouette coefficient (Rousseeuw, 1987) of the hardened partition

fuzzy_hypervolume

function

Fuzzy hypervolume FHV = ∑ ⁡ idet ⁡ F i (Gath and Geva, 1989)

partition_density

function

Partition density PD = ∑ ⁡ iSi∕FHV (Gath and Geva, 1989)

average_partition_density

function

Average partition density (Gath and Geva)

pbmf_index

function

PBM-F index (Pakhira, Bandyopadhyay and Maulik, 2004)

kwon_index

function

Kwon’s index (1998)

pcaes_index

function

Partition coefficient and exponential separation, PCAES (Wu and Yang, 2005)

fuzzy_rand_index

function

Fuzzy Rand index between two fuzzy partitions of the same samples

fuzzy_adjusted_rand_index

function

Fuzzy adjusted Rand index (chance-corrected), from the fuzzy pair counts of fuzzy_rand_index

fuzzy_jaccard_index

function

Fuzzy Jaccard index a∕(a + b + c) from the fuzzy pair counts of fuzzy_rand_index

stability_selection

function

Stability of the partition against resampling, for every number of clusters

validity_indices

function

Evaluate several validity indices at once

scan_n_clusters

function

Fit the estimator for several numbers of clusters and tabulate validity indices

suggest_n_clusters

function

Optimal number of clusters suggested by every index of a scan table

INDEX_DIRECTION

constant

For every validity index, whether its optimum is the maximum or the minimum

A.4 fuzzyclust.extensions: Robust and shape-oriented variants

Name

Kind

Description

PCM

class

Possibilistic c-means clustering (Krishnapuram and Keller)

PFCM

class

Possibilistic fuzzy c-means clustering (Pal, Pal, Keller and Bezdek)

NoiseClustering

class

Noise clustering: fuzzy c-means with a virtual noise cluster (Davé)

KernelFCM

class

Kernel fuzzy c-means: FCM in the feature space of a Mercer kernel

rbf_kernel

function

Gaussian (RBF) kernel matrix Kkl = exp ⁡ (−γ∥xk −yl∥2)

KERNELS

constant

Names of the kernels accepted by KernelFCM

FuzzyCVarieties

class

Fuzzy c-varieties (FCV) clustering: linear-variety prototypes (Bezdek et al.)

FuzzyCShells

class

Fuzzy c-(spherical) shells: circles / hyperspheres as prototypes

VolumePrototypeFCM

class

Fuzzy c-means with volume prototypes and optional adaptive cluster merging (Kaymak and Setnes, 2002)

SCAD

class

Simultaneous clustering and attribute discrimination (Frigui and Nasraoui, 2004)

FeatureWeightedFCM

class

Fuzzy c-means with global attribute weights (after Huang et al., 2005)

plot_shells

function

Scatter the data and draw the fitted circles of a FuzzyCShells model

plot_varieties

function

Scatter the data and draw the fitted lines of a FuzzyCVarieties model (n_dims=1)

plot_typicality

function

Scatter plot colored by the maximal typicality max ⁡ itik of every sample

make_circles

function

Intersecting circles (shell clusters) with optional arcs and outliers

make_close_blobs

function

Two Gaussian clusters of different size and density close to each other

make_crossing_lines

function

Line segments that cross at a common point

make_collinear_segments

function

Two collinear segments separated by a gap, optionally with a third, oblique segment

A.5 fuzzyclust.graph: Graph-based clustering

Name

Kind

Description

MSTClustering

class

Hybrid clustering with a minimal spanning tree and Gath–Geva models

GeodesicFCM

class

Geodesic-distance-based fuzzy c-medoid clustering (Feil and Abonyi, Algorithm II)

IsomapFCM

class

Fuzzy c-means on the Isomap projection (Feil and Abonyi, Algorithm I)

minimum_spanning_tree

function

Euclidean minimal spanning tree of the samples

fuzzy_cluster_similarity

function

Pairwise similarity of fuzzy clusters seen as fuzzy sets over the samples

neighbors_graph

function

Symmetric k-nearest-neighbor (or 𝜀-radius) graph with Euclidean weights

geodesic_distances

function

Graph (geodesic) distances between all pairs of samples, Isomap style

isomap_embedding

function

Classical multidimensional scaling of a (geodesic) distance matrix (the Isomap projection)

plot_mst

function

Draw the minimal spanning tree of a fitted MSTClustering

plot_neighbors_graph

function

Draw a neighborhood graph (sparse adjacency) over the data

plot_geodesic_path

function

Highlight the shortest graph path between two samples and the Euclidean chord

plot_similarity_dendrogram

function

Dendrogram of fuzzy clusters built from their similarity matrix

make_chained_blobs

function

Two Gaussian blobs connected by a sparse chain of points (the chaining effect)

make_density_blobs

function

A diffuse cluster next to two tight ones (very different densities)

make_s_curve

function

Points on the three-dimensional S-curve, a two-dimensional manifold (wraps scikit-learn)

A.6 fuzzyclust.viz: Visualization

Name

Kind

Description

pca_projection

function

Project the data and the cluster prototypes onto the first principal components

Sammon

class

Sammon’s nonlinear mapping to a low-dimensional space

FuzzySammon

class

Fuzzy Sammon mapping (FUZZSAM) of a fitted fuzzy clustering

FuzzySOM

class

Fuzzy self-organizing map: regularized fuzzy c-means on a grid

grid_laplacian

function

Regularization matrix L = GTG of a rectangular grid

sammon_stress

function

Sammon’s stress of an embedding Y of the data X

recomputed_membership

function

Fuzzy memberships recomputed in the projected space

projection_quality

function

Measures of how well a 2-D (or q-D) projection represents a fuzzy partition

plot_projection

function

Scatter plot of a 2-D projection with projected prototypes and membership contours

plot_stress

function

Stress versus iteration for one or several stress_history_ arrays

plot_map

function

Draw a fuzzy SOM as a colored grid: U-matrix, a component plane or the hit histogram

plot_som_lattice

function

Prototypes of a fuzzy SOM in the data space, with grid neighbors connected

make_ellipsoids

function

Elongated Gaussian clusters with random orientations in n dimensions

make_spiral_3d

function

Noisy points along a part of a helix in 3-D (Migály et al., first example)

make_hemisphere

function

Noisy points on the upper half of the unit sphere (Migály et al., second example)

A.7 fuzzyclust.models: Model identification

Name

Kind

Description

ModifiedGG

class

Modified Gath–Geva clustering: clusters are interpretable Takagi–Sugeno rules

TakagiSugeno

class

Takagi–Sugeno (TS) fuzzy model with rules extracted from fuzzy clusters

FuzzyCRegression

class

Fuzzy c-regression models (FCRM): clusters are regression hyperplanes

SupervisedFuzzyClassifier

class

Fuzzy rule-based classifier identified by supervised Gath–Geva type clustering

FuzzyPartitionDiscretizer

class

Supervised fuzzy discretization of continuous features

HingingHyperplaneTree

class

Binary regression tree with hinging-hyperplane nodes identified by fuzzy c-regression

HingeNode

class

One node of a HingingHyperplaneTree

simulate_free_run

function

Free-run (parallel) simulation of a NARX model

weighted_least_squares

function

Weighted least-squares estimate of local model parameters

select_features_by_separability

function

Backward feature elimination by the Fisher interclass separability of the rules

supervised_fuzzy_partition

function

Per-feature fuzzy partitions derived from supervised fuzzy clustering

ruspini_partition

function

Ruspini-type (equidistant triangular) partition of every feature, the unsupervised baseline

membership_1d

function

Evaluate the fuzzy sets of one feature at the values x

set_similarity

function

Jaccard-type similarity S = |A ∩B|∕|A ∪B| of two fuzzy sets sampled on a common grid

plot_membership_functions

function

Gaussian antecedent membership functions Aij(xj) of every rule, one panel per input

plot_local_models

function

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

plot_fuzzy_partition

function

Fuzzy sets of one feature of a fitted FuzzyPartitionDiscretizer

plot_hinge_tree_surface

function

Prediction surface (filled contours) of a two-input hinging-hyperplane tree with its hinges

plot_decision_regions

function

Decision regions of a two-input classifier, optionally with the rule centers and antecedent ellipses

make_sinc

function

Samples of the sinc function, the classic static benchmark of fuzzy modeling

make_piecewise_linear

function

A continuous piecewise-linear function of two variables (sum of two hinges)

piecewise_linear_function

function

Noise-free value of the function behind make_piecewise_linear

make_switching_lines

function

Switching regression data: samples of several lines over a common input range

make_second_order_plant

function

The second-order nonlinear benchmark plant of Abonyi, Babuška and Szeifert (2002)

second_order_plant_function

function

Nonlinear component f(y(k −1),y(k −2)) of make_second_order_plant

make_mimo_plant

function

A two-input two-output nonlinear process with operating-point-dependent gains

make_two_class_overlap

function

Two overlapping classes, each a mixture of two Gaussian blobs (XOR layout)

make_banded_classes

function

Three classes separated by thresholds on two features, plus one irrelevant feature

A.8 fuzzyclust.timeseries: Time series

Name

Kind

Description

FuzzySegmentation

class

Fuzzy segmentation of a multivariate time series (modified Gath–Geva clustering)

ChaoticPredictor

class

Operating-regime model of a chaotic series in the reconstructed state space

MixedInputStructureSelection

class

Estimator form of select_structure_mixed

bottom_up_segmentation

function

Bottom-up segmentation with PCA models (Keogh et al. style, multivariate extension)

pca_segment_cost

function

Cost of approximating a segment by one PCA model with n_components components

false_nearest_neighbors

function

Classical false-nearest-neighbor percentages over the model orders (na,nb)

fnn_model_order

function

Model order of a NARX model by false nearest neighbors with a cluster-based threshold

select_model_order

function

Convenience wrapper of fnn_model_order returning only the selected orders

cluster_based_threshold

function

Point-wise FNN thresholds Rk from Gath–Geva clusters in the regression space

delay_embedding

function

Delay vectors yk = [yk,yk−τ,…,yk−τ(de−1)]T of a scalar series

select_delay

function

Lag τ of the delay embedding from the series itself

embedding_scan

function

Fit ChaoticPredictor for several embedding dimensions and tabulate the criteria

select_embedding_dimension

function

Read the embedding and the local dimension off an embedding_scan table

correlation_dimension

function

Grassberger–Procaccia correlation dimension of a point cloud (e.g. delay vectors)

select_structure_mixed

function

Rank all candidate input structures by their fuzzy variance (Girimonte, Babuška and Abonyi)

fuzzy_variance

function

Total fuzzy variance σt of y over the fuzzy segments spanned by several inputs

plot_segmentation

function

Time plots of the variables with the fuzzy segments underneath

plot_fnn_table

function

Heat map of the percentage of false nearest neighbors over the orders (na,nb)

plot_embedding_scan

function

One-step prediction error and local-dimension index versus the embedding dimension

plot_phase_space

function

Two coordinates of a reconstructed (or true) state space, colored by cluster

plot_structure_ranking

function

Variance–complexity trade-off V CT = σtni along the ranking of structures

make_piecewise_timeseries

function

Multivariate series with planted regime changes (segmentation benchmark)

make_mackey_glass

function

Mackey–Glass delay-differential series (chaotic for τ = 17)

make_lorenz

function

Trajectory of the Lorenz system (RK4, fixed step)

make_rossler

function

Trajectory of the Rössler system with the parameters of Abonyi et al. (2004)

make_nonlinear_io_system

function

Continuous polymerization reactor benchmark of the FNN model-order paper

make_mixed_input_system

function

Regression problem with one discrete and several continuous inputs

A.9 fuzzyclust.relational: Relational, categorical, and mixed data

Name

Kind

Description

RelationalFCM

class

Relational fuzzy c-means (Hathaway, Davenport and Bezdek, 1989)

NERFCM

class

Non-Euclidean relational fuzzy c-means (Hathaway and Bezdek, 1994)

FuzzyCMedoids

class

Fuzzy c-medoids clustering of relational data (Krishnapuram et al., 2001)

FuzzyKModes

class

Fuzzy k-modes clustering of categorical data (Huang and Ng, 1999)

FuzzyKPrototypes

class

Fuzzy k-prototypes clustering of mixed numeric and categorical data (Huang, 1998)

relational_distances

function

Squared relational distances of the training objects to relational prototypes

matching_dissimilarity

function

Simple matching dissimilarity δ(a,b) = ∑ ⁡ j[aj≠bj] between rows

pairwise_dissimilarity

function

Pairwise dissimilarities of feature vectors by any SciPy metric

check_dissimilarity_matrix

function

Validate a (square or rectangular) dissimilarity matrix

dtw_distance_matrix

function

Dynamic time warping distances between all pairs of (equal-length) series

dtw_alignment

function

Optimal warping path between two series (for inspection and plotting)

autocorrelation_features

function

Sample autocorrelations ρ^(1),…,ρ^(L) of every series

autocorrelation_distance_matrix

function

Autocorrelation-based distance between time series (D’Urso and Maharaj, 2009)

gower_distance_matrix

function

Gower’s general coefficient of dissimilarity for mixed data (Gower, 1971)

plot_dissimilarity_matrix

function

Heat map of a dissimilarity matrix with the objects ordered by their labels

plot_dtw_alignment

function

Two series with the dynamic-time-warping correspondences between them

plot_modes

function

Table of the fitted modes, shaded by how much membership mass the mode carries

plot_series_clusters

function

Time series drawn in the color of their cluster, medoid series emphasized

make_categorical_blobs

function

Categorical records scattered around planted modes

make_mixed_blobs

function

Records with Gaussian numeric attributes and categorical attributes around modes

make_warped_series

function

Time series of three shape classes with random time warps

A.10 fuzzyclust.incomplete: Incomplete data

Name

Kind

Description

IncompleteFCM

class

Fuzzy c-means clustering of incomplete data (Hathaway and Bezdek, 2001)

STRATEGIES

constant

Names of the missing-data strategies of IncompleteFCM (WDS, PDS, OCS, NPS)

partial_distances

function

Squared partial distances of (incomplete) samples to prototypes

make_mcar

function

Remove values missing completely at random (MCAR) from a data matrix

make_incomplete_blobs

function

Isotropic Gaussian clusters with values missing completely at random

plot_incomplete_clusters

function

Scatter plot of a clustering of incomplete 2-D data at the completed coordinates

plot_imputation

function

Imputed against true values of the missing entries, one color per feature

A.11 fuzzyclust.large: Very large data and streams

Name

Kind

Description

WeightedFCM

class

Weighted fuzzy c-means (wFCM): fuzzy c-means with a weight per sample

RandomSampleFCM

class

Random sample and extend FCM (rseFCM) for very large data

SinglePassFCM

class

Single-pass fuzzy c-means (spFCM) for very large and streaming data

OnlineFCM

class

Online fuzzy c-means (oFCM) for very large and streaming data

extend_partition

function

Memberships of (many) samples in fixed prototypes (the extension step)

make_large_blobs

function

Many samples from a few isotropic Gaussian clusters, in random order

make_drifting_stream

function

A stream of chunks whose cluster centers drift from chunk to chunk

plot_chunk_timeline

function

Prototype coordinate against the chunk index for a chunked model

plot_center_trajectories

function

Trajectories of the prototypes over the chunks on top of (a subsample of) the 2-D data

A.12 fuzzyclust.image: Image segmentation

Name

Kind

Description

SpatialFCM

class

Spatially constrained fuzzy c-means for image segmentation

METHODS

constant

Names of the spatial methods of SpatialFCM

neighborhood_sum

function

Sum of an image over the neighbors of every pixel, ∑ ⁡ r∈Nkyr (center excluded)

weighted_sum_image

function

Linearly weighted sum image of EnFCM

local_similarity_image

function

Locally adaptive weighted image of FGFCM, ξk = ∑ ⁡ r∈NkSkrxr∕∑ rSkr

make_synthetic_image

function

A piecewise-constant image of simple shapes with known labels, plus a noisy copy

add_image_noise

function

Corrupt an image with Gaussian, salt-and-pepper or both kinds of noise

segmentation_accuracy

function

Fraction of correctly labeled pixels after the best matching of the labels

match_labels

function

Best one-to-one mapping of predicted labels onto true labels (Hungarian algorithm)

plot_segmentation

function

Panels original / noisy / labels / membership maps of a fitted SpatialFCM

plot_image

function

Show a gray-level or RGB image without axes ticks

plot_label_image

function

Show a label image with the fixed cluster palette (cluster i in color i)

plot_membership_maps

function

One panel per cluster with its membership image in [0, 1]

A.13 fuzzyclust.semisupervised: Partial supervision

Name

Kind

Description

SemiSupervisedFCM

class

Fuzzy c-means with partial supervision (Pedrycz and Waletzky, 1997)

PairwiseConstrainedFCM

class

Fuzzy clustering with pairwise constraints, PCCA (Grira, Crucianu, and Boujemaa)

check_pairwise_constraints

function

Validate lists of pairwise constraints and return them as integer arrays (n_pairs, 2)

constraint_satisfaction

function

Fraction of satisfied must-link and cannot-link pairs under hard labels

make_partially_labeled_pair

function

Two long parallel groups whose natural split disagrees with the classes

make_partial_labels

function

Hide most labels of y: keep a random subset, set the rest to -1

make_pairwise_constraints

function

Draw random must-link and cannot-link pairs consistent with the labels y

plot_label_propagation

function

Labeled seeds as large black-edged markers, the rest colored by the cluster they were pulled into

plot_pairwise_constraints

function

Overlay must-link (solid green) and cannot-link (dashed vermilion) pairs on a scatter plot

A.14 fuzzyclust.coclustering: Co-clustering

Name

Kind

Description

FCCM

class

Fuzzy clustering for categorical multivariate data, FCCM (Oh, Honda, and Ichihashi, 2001)

FCoDoK

class

Fuzzy co-clustering of documents and keywords, Fuzzy CoDoK (Kummamuru, Dhawale, Krishnapuram, 2003)

make_block_matrix

function

A block-structured object–item count matrix with known co-clusters

plot_coclusters

function

Heat map of an object–item matrix with rows and columns reordered by co-cluster

plot_item_memberships

function

Bar chart of the item memberships of every co-cluster

A.15 fuzzyclust.collaborative: Collaborative clustering

Name

Kind

Description

CollaborativeFCM

class

Horizontal collaborative fuzzy clustering (Pedrycz, 2002)

align_partitions

function

Permute the clusters of U to match those of U_ref (maximal membership overlap)

make_collaborative_sites

function

The same objects described at several data sites by different features

plot_site_partitions

function

Scatter plot of every site’s (two-dimensional) data colored by its own partition

plot_collaboration_trajectory

function

Agreement between the sites as a function of the collaboration weight α

A.16 fuzzyclust.ensemble: Cluster ensembles

Name

Kind

Description

FuzzyClusterEnsemble

class

Consensus of a library of soft clusterings (Punera and Ghosh, 2008)

coassociation_matrix

function

Soft co-association (similarity) matrix of a library of fuzzy partitions

evidence_accumulation

function

Evidence accumulation clustering of a co-association matrix (Fred and Jain, 2005)

soft_mcla

function

Soft meta-clustering algorithm, sMCLA (Punera and Ghosh, 2008)

information_theoretic_kmeans

function

Information-theoretic k-means consensus, ITK (Punera and Ghosh, 2008)

cspa

function

Cluster-based similarity partitioning, CSPA (Strehl and Ghosh, 2002), for hard partitions

mcla

function

Meta-clustering algorithm, MCLA (Strehl and Ghosh, 2002), for hard partitions

stability_curve

function

Reproducibility of the consensus partition as the library grows

make_overlapping_blobs

function

Gaussian groups that overlap enough for single clustering runs to disagree

plot_coassociation

function

Heat map of a co-association matrix with the samples reordered by (consensus) label

plot_lifetimes

function

Bar chart of the lifetime of every number of clusters in the co-association dendrogram

A.17 fuzzyclust.datasets: Data sets

Name

Kind

Description

make_fuzzy_blobs

function

Isotropic Gaussian clusters with random centers (MATLAB nDexample)

make_ellipses

function

Elongated 2-D Gaussian clusters with different orientations

make_different_densities

function

Clusters of very different size (density) and spread

make_rings

function

Concentric rings (hollow clusters) in 2-D

make_lines

function

Noisy line segments in 2-D (linear sub-space prototypes)

make_noisy_blobs

function

Gaussian clusters plus uniformly distributed outliers

make_curved_manifold

function

Points along two interleaved spiral arms (nonconvex clusters)

make_two_moons

function

Two interleaving half circles (thin wrapper around scikit-learn)

load_motorcycle

function

Motorcycle impact data (Silverman, 1985) used throughout the MATLAB toolbox

load_iris

function

Fisher’s iris data (150 ×4, 3 classes) via scikit-learn

load_wine

function

Wine recognition data (178 ×13, 3 classes) via scikit-learn

load_breast_cancer

function

Wisconsin breast cancer data (569 ×30, 2 classes) via scikit-learn

A.18 fuzzyclust.preprocessing: Preprocessing

Name

Kind

Description

normalize

function

Scale the data and return the scaler for inverse transformation

make_regressors

function

Regression matrix and target of a NARX model

lagged_matrix

function

Delay-embedding of a univariate series

A.19 fuzzyclust.plotting: Plotting helpers

Name

Kind

Description

PALETTE

constant

Fixed categorical color palette; cluster i always gets PALETTE[i]

plot_clusters

function

Scatter plot of 2-D data colored by (hard) cluster label with prototypes

plot_membership_contours

function

Contour map of the maximal membership max ⁡ iμi(x) over the plane

plot_covariance_ellipses

function

Draw the nstd-sigma ellipses of (fuzzy) covariance matrices

plot_validity_scan

function

Plot validity indices versus the number of clusters

plot_objective

function

Objective J versus iteration for one or several fitted estimators

plot_membership_profiles

function

Membership degrees μik of every cluster along the sample index