Description Usage Arguments Details Value See Also
View source: R/predict.w_naive_bayes.R
Function for Naive Bayes algorithm prediction.
1 2 3 4 5 6 7 8 |
object |
"w_bayes" class object.. |
newdata |
new observations which predictions will be made on. |
type |
"pred" or "prob". |
... |
additional arguments. |
Calls predict.w_discrete_naive_bayes
or predict.w_gaussian_naive_bayes
accordingly
Type "pred" will give class predictions. "prob" will give probabilities for each class.
A vector of class predictions or a matrix of class probabilities
depending of type
[predict()], [rbooster::predict.w_discrete_naive_bayes()], [rbooster::predict.w_gaussian_naive_bayes()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.