naiveBayes_train: Train a naive Bayes classifier

View source: R/naiveBayes.R

naiveBayes_trainR Documentation

Train a naive Bayes classifier

Description

Returns conditional means and standard deviations per class as well as a table with the global proportions of each class in the dataset. This is mostly useful because the output can be passed on to naiveBayes to save time if naiveBayes() is called in a loop with the same training dataset.

Usage

naiveBayes_train(formula, data)

Arguments

formula

outcome ~ predictor1 + predictor1 + ...

data

training dataset


tatters/soundgen documentation built on Aug. 22, 2023, 4:24 p.m.