Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/cvnaiveBayesd.R
This function computes the crossvalidaton error for a naive bayes classifier after discretization
1 | cvnaiveBayesd(data, repet, method = c("ew", "ef", "1R", "chiMerge"))
|
data |
The dataset |
repet |
The number of repetions. |
method |
The discretezation method to be used, bins with equal widths (ew), bins with equal frequency (ef), Holte's oneR (1R) and chiMerge. |
Uses 10-fold crossvalidation.
Returns the mean misclassification crossvalidation error of the classifier obtained on a given number of repetions
Edgar Acuna
1 2 3 | data(diabetes)
library(e1071)
cvnaiveBayesd(diabetes,3,method="ew")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.