fuzzyclust.semisupervised.plot_label_propagation#

fuzzyclust.semisupervised.plot_label_propagation(X, y_partial, model=None, labels=None, ax=None, legend=True, s=14)[source]#

Labeled seeds as large black-edged markers, the rest colored by the cluster they were pulled into.

Parameters:
Xarray_like of shape (n_samples, 2)
y_partialarray_like of shape (n_samples,)

Class labels with -1 for the unlabeled samples.

modelfitted SemiSupervisedFCM, optional

Its labels_ and cluster_centers_ are drawn; the marker of a labeled sample is that of its class, the color that of the cluster tied to the class (label_mapping_).

labelsarray_like of shape (n_samples,), optional

Hard labels to color the samples when no model is given.

axmatplotlib Axes, optional
legendbool, default=True
sfloat, default=14

Marker size of the unlabeled samples.

Returns:
axmatplotlib Axes

Examples using fuzzyclust.semisupervised.plot_label_propagation#

Fuzzy c-means with partial supervision: label fraction and weight

Fuzzy c-means with partial supervision: label fraction and weight