How to cross validate a Naive Bayes classifier?

I use e1071 for naive classification

function

naiveBayes(x=, y=, )

I want to use cvTools for cross-validation

cvFit(....)

how could I write this, the documentation of cvFit is really hard to understand for me

typeof(naiveBayes) is 'closure'

Answers


I think it is much better to start using caret package. e.g. here's part of the code I am currently working on:

    library('caret')

    train_control <- trainControl(method="cv", number=10)

    #create model
    fit <- train(trainData[, -classIndex], trainData[, classIndex], method = "nb",trControl=train_control)

Need Your Help

MIPS .data Segment to Machine Code

assembly mips machine-code

I have to convert the following code from the .data segment into machine code, but I am unsure as to how this is done.

Reshaping noisy coin into a circle form

image-processing opencv javacv

I'm doing a coin detection using JavaCV (OpenCV wrapper) but I have a little problem when the coins are connected. If I try to erode them to separate these coins they loose their circle form and if...