Classification
Gaussian Naive Bayes

Gaussian Naive Bayes

Gaussian Naive Bayes, A Gaussian $$G_{cf}$$ distribution is maintained for each class c and each feature f . Each Gaussian is updated using the amount associated with each feature. The joint log-likelihood is then obtained by summing the log probabilities of each feature associated with each class.

Parameters

  • n_classes(int) → The number of classes for classification.

Example Usage

We can create an instance of GaussianNB model in this format.

import turboml as tb
gauNB = tb.GaussianNB(n_classes=2)