Displaying 3 results from an estimated 3 matches for "usekernel".
Did you mean:
iskernel
2009 Jun 30
2
NaiveBayes fails with one input variable (caret and klarR packages)
...data=d);
> predict(m);
Error in as.vector(x, mode) : invalid argument 'mode'
> library(caret);
Loading required package: lattice
> mCaret<-train(mnX,cY,method="nb",trControl = trainControl(method = "cv", number = 10));
Loading required package: class
Fitting: usekernel=TRUE
Fitting: usekernel=FALSE
> predicted <- predict(mCaret, newdata=mnX);
Error in 1:nrow(newdata) : NA/NaN argument
>
We use caret to call NaiveBayes and we don't have any error messages in cases where the number of input variables is greater than 1.
Cheers
DK
____________________...
2010 Nov 03
2
[klaR package] [NaiveBayes] warning message numerical 0 probability
Hi,
I run R 2.10.1 under ubuntu 10.04 LTS (Lucid Lynx) and klaR version 0.6-4.
I compute a model over a 2 classes dataset (composed of 700 examples).
To that aim, I use the function NaiveBayes provided in the package
klaR.
When I then use the prediction function : predict(my_model, new_data).
I get the following warning :
"In FUN(1:747[[747L]], ...) : Numerical 0 probability with
2007 Oct 30
1
NAIVE BAYES with 10-fold cross validation
hi there!!
i am trying to implement the code of the e1071 package for naive bayes, but it doens't really work, any ideas??
i am very glad about any help!!
i need a naive bayes with 10-fold cross validation:
code:
library(e1071)
model <- naiveBayes(code ~ ., mydata)
tune.control <- tune.control(random = FALSE, nrepeat = 1, repeat.aggregate = min,
sampling = c("cross"),