naiveBayes_train {soundgen} | R 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 |
[Package soundgen version 2.6.3 Index]