fuzzyclust.extensions.make_circles#

fuzzyclust.extensions.make_circles(centers=((0.0, 0.0), (3.0, 1.0), (1.0, 3.5)), radii=(2.0, 1.2, 1.0), n_samples_per_circle=120, arc=1.0, noise=0.06, n_outliers=0, random_state=None)[source]#

Intersecting circles (shell clusters) with optional arcs and outliers.

Unlike fuzzyclust.datasets.make_rings() the circles are not concentric, so they intersect and partly cover each other – the situation the fuzzy c-(spherical) shells algorithms were designed for.

Parameters:
centerssequence of (x, y)

Centers of the circles.

radiisequence of float

Radii, one per center.

n_samples_per_circleint, default=120
arcfloat, default=1.0

Fraction of the full circle that is sampled (1.0 = closed circle, 0.5 = half circle starting at a random angle).

noisefloat, default=0.06

Radial standard deviation of the points around the circle.

n_outliersint, default=0

Uniformly distributed outliers (label -1).

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

Index of the generating circle, -1 for outliers.

Examples using fuzzyclust.extensions.make_circles#

Fuzzy c-shells: circles as prototypes

Fuzzy c-shells: circles as prototypes