Naive Bayes classification algorithm.
@author: drusk
Naive Bayes classifier.
This algorithm classifies samples using probabilities calculated based on applying Bayes’ theorem.
The algorithm is said to be naive because it assumes all features are independent of each other. While not generally true, the approach is still quite effective and allows the training set to be much smaller.
Constructs a new NaiveBayes classifier.
Determines the probability that a sample belongs to each class that was seen in the training set.