[R] NaiveBayes fails with one input variable (caret and klarR packages)

2009-06-30 Thread Damian Krstajic
Hello, We have a system which creates thousands of regression/classification models and in cases where we have only one input variable NaiveBayes throws an error. Maybe I am mistaken and I shouldn't expect to have a model with only one input variable. We use R version 2.6.0 (2007-10-03). We

[R] nearZeroVar in caret fails

2009-06-17 Thread Damian Krstajic
I am using R version 2.6.0 on Linux (CentOS 4.5) and have a problem with executing nearZeroVar function in the package caret. I am using the latest release of caret v4.17. I have a matrix X with 266 rows and 4 columns and when implementing nearZeroVar function from caret package I get followin

[R] genetic algorithms in solving classification problems

2008-01-07 Thread Damian Krstajic
Hello, I am planning to implement Genetic Algorithms in solving classification problems. As far as I can see there is only genalg package that I can use. I can see that there are gafit and rgenoud packages that can be used for regression and optimisation problems but not for classification. Is

[R] predict.rpart question

2008-02-26 Thread Damian Krstajic
Dear All, I have a question regarding predict.rpart. I use rpart to build classification and regression trees and I deal with data with relatively large number of input variables (predictors). For example, I build an rpart model like this rpartModel <- rpart(Y ~ X, method="class", minsplit =

[R] predict.rpart question

2008-02-26 Thread Damian Krstajic
Dear All, I have a question regarding predict.rpart. I use rpart to build classification and regression trees and I deal with data with relatively large number of input variables (predictors). For example, I build an rpart model like this rpartModel <- rpart(Y ~ X, method="class", minsplit =1, m