[R] Help with this error kernlab class probability calculations failed; returning NAs

2012-11-29 Thread Brian Feeny
I have never been able to get class probabilities to work and I am relatively new to using these tools, and I am looking for some insight as to what may be wrong. I am using caret with kernlab/ksvm. I will simplify my problem to a basic data set which produces the same problem. I have read

Re: [R] Help with this error kernlab class probability calculations failed; returning NAs

2012-11-29 Thread Max Kuhn
You didn't provide the results of sessionInfo(). Upgrade to the version just released on cran and see if you still have the issue. Max On Thu, Nov 29, 2012 at 6:55 PM, Brian Feeny bfe...@mac.com wrote: I have never been able to get class probabilities to work and I am relatively new to

Re: [R] Help with this error kernlab class probability calculations failed; returning NAs

2012-11-29 Thread Brian Feeny
Yes I am still getting this error, here is my sessionInfo: sessionInfo() R version 2.15.2 (2012-10-26) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils

Re: [R] Help with this error kernlab class probability calculations failed; returning NAs

2012-11-29 Thread Max Kuhn
Your output has: At least one of the class levels are not valid R variables names; This may cause errors if class probabilities are generated because the variables names will be converted to: X0, X1 Try changing the factor levels to avoid leading numbers and try again. Max On Thu, Nov 29,

Re: [R] Help with this error kernlab class probability calculations failed; returning NAs

2012-11-29 Thread Brian Feeny
Max, Thank you for the assistance. That was it. My dependent variable was just using 1 and 0 as levels, I changed them to yes, no: levels(trainset$outcome) - list(no=0, yes=1) and I no longer get the warning. Brian On Nov 29, 2012, at 10:29 PM, Max Kuhn mxk...@gmail.com wrote: Your