fuzzyclust.incomplete#

Fuzzy clustering of incomplete data.

Real data sets have holes: sensors fail, questionnaires are left blank, records are merged from sources that do not measure the same things. This sub-package implements the four strategies of Hathaway and Bezdek (2001) for running fuzzy c-means on data with missing values (NaN):

Fuzzy c-means with missing values: whole-data, partial-distance, optimal-completion and nearest-prototype strategies.

Classes#

IncompleteFCM([n_clusters, m, strategy, ...])

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

Functions#

partial_distances(X, V)

Squared partial distances of (incomplete) samples to prototypes.

make_mcar(X[, missing_rate, random_state, ...])

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

make_incomplete_blobs([n_clusters, ...])

Isotropic Gaussian clusters with values missing completely at random.

plot_incomplete_clusters(X_completed, ...[, ...])

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

plot_imputation(X_true, X_completed, mask[, ...])

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

Constants#

STRATEGIES

Built-in immutable sequence.