skactiveml.visualization.plot_stream_training_data#

skactiveml.visualization.plot_stream_training_data(ax, X, y, queried_indices, classes, feature_bound, unlabeled_color='grey', cmap='coolwarm', alpha=0.2, linewidth=3, plot_cand_highlight=True)[source]#

Plot the utility for the given query strategy.

Parameters
axmatplotlib.axes.Axes

The axis on which the utility is plotted. Only if y.ndim = 1 (single annotator).

Xarray-like of shape (n_samples, 1)

Training data set, usually complete, i.e., including the labeled and unlabeled samples.

yarray-like of shape (n_samples,)

Labels of the training data set (possibly including unlabeled ones).

queried_indicesarray-like of shape (n_samples,)

Indicates which samples in X have been queried.

classesarray-like of shape (n_classes,)

Holds the label for each class.

feature_boundarray-like of shape [[xmin, ymin], [xmax, ymax]]

Determines the area in which the boundary is plotted. If candidates is not given, bound must not be None. Otherwise, the bound is determined based on the data.

unlabeled_colorstr or matplotlib.colors.Colormap, default=’grey’

The color for the unlabeled samples.

cmapstr or matplotlib.colors.Colormap, default=’coolwarm_r’

The colormap for the confidence levels.

alphascalar, default=0.2

Set the alpha value used for blending - not supported on all backends.

linewidthfloat, default=3

Set the line width in points.

plot_cand_highlightbool, default=True

The indicator to highlight the current candidate.

Returns
axesarray-like of shape (n_annotators_to_plot,)

The axes on which the utilities were plotted.

Examples using skactiveml.visualization.plot_stream_training_data#

Cognitive Dual-Query Strategy with Fixed-Uncertainty

Cognitive Dual-Query Strategy with Fixed-Uncertainty

Cognitive Dual-Query Strategy with Random Sampling

Cognitive Dual-Query Strategy with Random Sampling

Cognitive Dual-Query Strategy with Randomized-Variable-Uncertainty

Cognitive Dual-Query Strategy with Randomized-Variable-Uncertainty

Cognitive Dual-Query Strategy with Variable-Uncertainty

Cognitive Dual-Query Strategy with Variable-Uncertainty

Fixed-Uncertainty

Fixed-Uncertainty

Periodic Sampling

Periodic Sampling

Randomized-Variable-Uncertainty

Randomized-Variable-Uncertainty

Split

Split

Density Based Active Learning for Data Streams

Density Based Active Learning for Data Streams

Probabilistic Active Learning in Datastreams

Probabilistic Active Learning in Datastreams

Stream Random Sampling

Stream Random Sampling

Variable-Uncertainty

Variable-Uncertainty