On 26.08.2012 15:33, Reza Salimi-Khorshidi wrote:
Thanks Uwe, Am I right that in ksvm's internal cross-validation, there is no guarantee for having *at least one* of each classes in each subset?
That is my guess, but I haven't read the code. Please read it yourself in case you want more details - or ask the author of tht function.
Best, Uwe Ligges
Some randomness is involved, and when you get an unfortunate subsample (e.g. if in the internal cross-validation one class is not selected at all) it won't work anymore.
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.