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
ofshape(n_samples, 2) - y_partialarray_like
ofshape(n_samples,) Class labels with
-1for the unlabeled samples.- model
fittedSemiSupervisedFCM,optional Its
labels_andcluster_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
ofshape(n_samples,),optional Hard labels to color the samples when no model is given.
- ax
matplotlibAxes,optional - legendbool, default=True
- s
float, default=14 Marker size of the unlabeled samples.
- Xarray_like
- Returns:
- ax
matplotlibAxes
- ax
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