UncertaintyEstimator

class probly.evaluation.active_learning.strategies.UncertaintyEstimator(*args, **kwargs)[source]

Bases: Estimator, Protocol

Protocol for estimators that provide uncertainty scores.

fit(x: ArrayLike, y: ArrayLike) → None[source]

Fit the estimator on labeled data.

predict(x: ArrayLike) → ArrayLike[source]

Return class predictions.

predict_proba(x: ArrayLike) → ArrayLike[source]

Return class probabilities.

uncertainty_scores(x: ArrayLike) → ArrayLike[source]

Return per-sample uncertainty scores of shape (n_samples,).

Examples using probly.evaluation.active_learning.strategies.UncertaintyEstimator

Active Learning with sklearn - Margin vs Random

Active Learning with sklearn - Margin vs Random