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