cvnaiveBayesd {dprep} | R Documentation |
This function computes the crossvalidaton error for a naive bayes classifier after discretization
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
data(diabetes) library(e1071) cvnaiveBayesd(diabetes,3,method="ew")