Skip to content

ActiveLearningClassifier

Base class for active learning classifiers.

Parameters

  • classifier

    Typebase.Classifier

    The classifier to wrap.

  • seed

    Typeint | None

    DefaultNone

    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

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.