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


soundgen documentation built on Sept. 12, 2024, 6:29 a.m.