NaiveBayes#

class capymoa.classifier.NaiveBayes[source]#

Bases: MOAClassifier

Naive Bayes incremental learner. Performs classic Bayesian prediction while making the naive assumption that all inputs are independent. Naive Bayes is a classifier algorithm known for its simplicity and low computational cost. Given n different classes, the trained Naive Bayes classifier predicts, for every unlabeled instance I, the class C to which it belongs with high accuracy.

Parameters:
  • schema – The schema of the stream, defaults to None.

  • random_seed – The random seed passed to the MOA learner, defaults to 0.

__init__(
schema: Schema | None = None,
random_seed: int = 0,
)[source]#
CLI_help()[source]#
predict(instance)[source]#
predict_proba(instance)[source]#
train(instance)[source]#