graphclust.fuzzy.labels_to_membership#

graphclust.fuzzy.labels_to_membership(labels, n_clusters=None)[source]#

Crisp labels to a 0/1 membership matrix of shape (n_samples, n_clusters).