Skip to content

MultiLabelClassifier

Multi-label classifier.

Methods

learn_one

Update the model with a set of features x and the labels y.

Parameters

  • xdict[FeatureName, typing.Any]
  • ydict[FeatureName, bool]

predict_one

Predict the labels of a set of features x.

Parameters

  • xdict[FeatureName, typing.Any]
  • kwargstyping.Any

Returns

dict[FeatureName, bool]: The predicted labels.

predict_proba_one

Predict the probability of each label appearing given dictionary of features x.

Parameters

  • xdict[FeatureName, typing.Any]
  • kwargstyping.Any

Returns

dict[FeatureName, dict[bool, float]]: A dictionary that associates a probability which each label.