fuzzyclust.large.make_large_blobs#

fuzzyclust.large.make_large_blobs(n_samples=100000, n_clusters=5, n_features=2, weights=None, spread=0.6666666666666666, box=10.0, shuffle=True, random_state=None)[source]#

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

The centers are drawn as in fuzzyclust.datasets.make_fuzzy_blobs() (uniform in the box, at least \(4\sigma\) apart); the cluster sizes follow weights (equal by default). The samples are shuffled so that consecutive chunks of the array are random samples of the whole, which is what the single-pass and online algorithms assume.

Parameters:
n_samplesint, default=100000
n_clustersint, default=5
n_featuresint, default=2
weightsarray_like of shape (n_clusters,), optional

Relative sizes of the clusters (normalized internally).

spreadfloat, default=1/1.5

Standard deviation of the clusters.

boxfloat, default=10.0
shufflebool, default=True
random_stateint, RandomState instance or None
Returns:
Xndarray of shape (n_samples, n_features)
yndarray of shape (n_samples,)

Examples

>>> from fuzzyclust.large import make_large_blobs
>>> X, y = make_large_blobs(n_samples=1000, n_clusters=4, random_state=0)
>>> X.shape, int(y.max()) + 1
((1000, 2), 4)

Examples using fuzzyclust.large.make_large_blobs#

Fuzzy c-means for very large data: rseFCM, spFCM and oFCM

Fuzzy c-means for very large data: rseFCM, spFCM and oFCM