fuzzyclust.graph.make_chained_blobs#

fuzzyclust.graph.make_chained_blobs(n_samples_per_blob=120, n_chain=25, spread=0.5, distance=7.0, chain_noise=0.08, random_state=None)[source]#

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

Single-linkage and plain MST cutting see one cluster, because every consecutive pair along the chain is close. The volume-based splitting of MSTClustering separates the blobs (and the chain) because the union has a much larger fuzzy hypervolume than its parts.

Parameters:
n_samples_per_blobint, default=120
n_chainint, default=25

Number of chain points between the blobs.

spreadfloat, default=0.5

Standard deviation of the blobs.

distancefloat, default=7.0

Distance between the blob centers.

chain_noisefloat, default=0.08

Standard deviation of the chain points around the straight line.

random_stateint, RandomState instance or None
Returns:
Xndarray of shape (2 * n_samples_per_blob + n_chain, 2)
yndarray of shape (n_samples,)

0 and 1 for the blobs, 2 for the chain.

Examples using fuzzyclust.graph.make_chained_blobs#

Minimal spanning tree clustering: cutting, splitting, and Gath–Geva refinement

Minimal spanning tree clustering: cutting, splitting, and Gath–Geva refinement