cvnaiveBayesd: Crossvalidation estimation error for the naive Bayes...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cvnaiveBayesd.R

Description

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

Usage

1
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.

Details

Uses 10-fold crossvalidation.

Value

Returns the mean misclassification crossvalidation error of the classifier obtained on a given number of repetions

Author(s)

Edgar Acuna

See Also

crossval

Examples

1
2
3
data(diabetes)
library(e1071)
cvnaiveBayesd(diabetes,3,method="ew")

dprep documentation built on May 29, 2017, 11:01 a.m.