ActiveLearningClassifier¶
Base class for active learning classifiers.
Parameters¶
-
classifier
Type → base.Classifier
The classifier to wrap.
-
seed
Type → int | None
Default →
None
Random number generator seed for reproducibility.
Methods¶
learn_one
Update the model with a set of features x
and a label y
.
Parameters
- x
- y
- kwargs
Returns
self
predict_one
Predict the label of x
and indicate whether a label is needed.
Parameters
- x
- kwargs
Returns
The predicted label.
predict_proba_one
Predict the probability of each label for x
and indicate whether a label is needed.
Parameters
- x
- kwargs
Returns
A dictionary that associates a probability which each label.