skactiveml.utils.is_unlabeled#

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

Creates a boolean mask indicating missing labels.

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

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

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

Value to represent a missing label.

Returns
is_unlabelednp.ndarray of shape (n_samples,) or (n_samples, n_outputs)

Boolean mask indicating missing labels in y.