NaiveBayesModel: Naive Bayes Classifier Model

Description Usage Arguments Details Value See Also Examples

View source: R/ML_NaiveBayesModel.R

Description

Computes the conditional a-posterior probabilities of a categorical class variable given independent predictor variables using Bayes rule.

Usage

1
NaiveBayesModel(laplace = 0)

Arguments

laplace

positive numeric controlling Laplace smoothing.

Details

Response Types:

factor

Further model details can be found in the source link below.

Value

MLModel class object.

See Also

naiveBayes, fit, resample

Examples

1
2
3
## Requires prior installation of suggested package e1071 to run

fit(Species ~ ., data = iris, model = NaiveBayesModel)

MachineShop documentation built on June 18, 2021, 9:06 a.m.