RandomQuery¶
- class probly.evaluation.active_learning.strategies.RandomQuery(seed: int | None = None)[source]¶
Bases:
objectSelects unlabeled samples uniformly at random.
- Parameters:
seed – Seed for the random number generator. Pass None for non-deterministic selection.
Initialize the random number generator.
- Parameters:
seed – Seed for the random number generator. Pass None for non-deterministic selection.
- select(estimator: Estimator, pool: ActiveLearningPool, n: int) ArrayLike[source]¶
Return n randomly chosen indices from the unlabeled pool.
- Parameters:
estimator – Fitted estimator (not used by this strategy).
pool – The current active learning pool.
n – Number of samples to select.
- Returns:
Array of n unique integer indices into pool.x_unlabeled.