Create a 'NaiveBayes object, passing 'x' and 'y' together in one table.
Create a 'NaiveBayes object, passing 'x' and 'y' together in one table.
the data vectors along with their classifications stored as rows of a matrix
the names of the features
the number of classes
the value count (number of distinct values) for each feature
use m-estimates (me == 0 => regular MLE estimates)
NaiveBayes
is the companion object for theNaiveBayes
class.