View source: R/ML_NaiveBayesModel.R
NaiveBayesModel | R Documentation |
Computes the conditional a-posterior probabilities of a categorical class variable given independent predictor variables using Bayes rule.
NaiveBayesModel(laplace = 0)
laplace |
positive numeric controlling Laplace smoothing. |
factor
Further model details can be found in the source link below.
MLModel
class object.
naiveBayes
, fit
,
resample
## Requires prior installation of suggested package e1071 to run
fit(Species ~ ., data = iris, model = NaiveBayesModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.