skactiveml.utils.unlabeled_indices#

skactiveml.utils.unlabeled_indices(y, missing_label=nan)[source]#

Return an array of indices indicating missing labels.

Parameters
yarray-like of shape (n_samples,) or (n_samples, n_outputs)

Class labels to be checked w.r.t. to present labels.

missing_labelnumber or str or None or np.nan, default=np.nan

Value to represent a missing label.

Returns
unlbld_indicesnumpy.ndarray of shape (n_samples) or (n_samples, 2)

Index array of missing labels. If y is a 2D-array, the indices have shape (n_samples, 2), otherwise it has the shape `(n_samples).

Examples using skactiveml.utils.unlabeled_indices#

Bayesian Active Learning by Disagreement (BALD)

Bayesian Active Learning by Disagreement (BALD)

Density-weighted Uncertainty Sampling

Density-weighted Uncertainty Sampling