powered by
Computes the conditional a-posterior probabilities of a categorical class variable given independent predictor variables using Bayes rule.
NaiveBayesModel(laplace = 0)
MLModel class object.
MLModel
positive numeric controlling Laplace smoothing.
factor
Further model details can be found in the source link below.
naiveBayes, fit, resample
naiveBayes
fit
resample
# \donttest{ ## Requires prior installation of suggested package e1071 to run fit(Species ~ ., data = iris, model = NaiveBayesModel) # }
Run the code above in your browser using DataLab