fuzzyclust.cluster.entropy_memberships#

fuzzyclust.cluster.entropy_memberships(d2, lam)[source]#

Memberships of the entropy-regularized c-means, \(\mu_{ik}\propto\exp(-D^2_{ik}/\lambda)\).

Evaluated as a softmax over the clusters after subtracting the largest logit of every sample, so that it does not underflow for small \(\lambda\).

Parameters:
d2ndarray of shape (n_samples, n_clusters)

Squared distances.

lamfloat

Regularization weight (temperature) \(\lambda>0\).

Examples using fuzzyclust.cluster.entropy_memberships#

What makes a partition fuzzy: fuzzifiers, regularization, and annealing

What makes a partition fuzzy: fuzzifiers, regularization, and annealing