skactiveml.utils.labeled_indices#
- skactiveml.utils.labeled_indices(y, missing_label=nan)[source]#
Return an array of indices indicating present labels.
- Parameters
- yarray-like, shape (n_samples) or (n_samples, n_outputs)
Class labels to be checked w.r.t. to present labels.
- missing_labelnumber | str | None | np.nan, optional (default=np.nan)
Symbol to represent a missing label.
- Returns
- lbld_indicesnumpy.ndarray, shape (n_samples) or (n_samples, 2)
Index array of present 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.labeled_indices
#

Batch Active Learning by Diverse Gradient Embedding (BADGE)

Batch Density-Diversity-Distribution-Distance Sampling

Query-by-Committee (QBC) with Kullback-Leibler Divergence

Batch Bayesian Active Learning by Disagreement (BatchBALD)

Regression Tree Based Active Learning (RT-AL) with Random Selection

Regression Tree Based Active Learning (RT-AL) with Diversity Selection

Regression Tree Based Active Learning (RT-AL) with Representativity Selection

Regression based Kullback Leibler Divergence Maximization