fuzzyclust.incomplete.make_incomplete_blobs#

fuzzyclust.incomplete.make_incomplete_blobs(n_clusters=3, n_samples_per_cluster=100, n_features=2, missing_rate=0.2, spread=0.6666666666666666, box=10.0, random_state=None)[source]#

Isotropic Gaussian clusters with values missing completely at random.

A convenience wrapper around fuzzyclust.datasets.make_fuzzy_blobs() and make_mcar() that also returns the complete data, so that the recovered prototypes and the imputed values can be compared with the truth.

Parameters:
n_clustersint, default=3
n_samples_per_clusterint, default=100
n_featuresint, default=2
missing_ratefloat, default=0.2
spreadfloat, default=1/1.5
boxfloat, default=10.0

See fuzzyclust.datasets.make_fuzzy_blobs().

random_stateint, RandomState instance or None
Returns:
X_missingndarray of shape (n_samples, n_features)

Data with NaN for the missing values.

yndarray of shape (n_samples,)

Index of the generating cluster.

X_completendarray of shape (n_samples, n_features)

The complete data.