NaiveBayesModel: Naive Bayes Classifier Model

View source: R/ML_NaiveBayesModel.R

NaiveBayesModelR Documentation

Naive Bayes Classifier Model

Description

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

Usage

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


## Requires prior installation of suggested package e1071 to run

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



brian-j-smith/MachineShop documentation built on Sept. 22, 2023, 10:01 p.m.