Classification using Naive Bayes
This function builds a classification model using Naive Bayes.
NB(train, labels, tune = FALSE, ...)
train |
The training set (description), as a |
labels |
Class labels of the training set ( |
tune |
If true, the function returns paramters instead of a classification model. |
... |
Other parameters. |
The classification model.
require (datasets) data (iris) NB (iris [, -5], iris [, 5])
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.