Learn R Programming

dprep (version 3.0.2)

cvnaiveBayesd: Crossvalidation estimation error for the naive Bayes classifier.

Description

This function computes the crossvalidaton error for a naive bayes classifier after discretization

Usage

cvnaiveBayesd(data, repet, method = c("ew", "ef", "1R", "chiMerge"))

Arguments

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.

Value

a given number of repetions

Details

Uses 10-fold crossvalidation.

See Also

crossval

Examples

Run this code
data(diabetes)
library(e1071)
cvnaiveBayesd(diabetes,3,method="ew")

Run the code above in your browser using DataLab