search for: svmnew

Displaying 1 result from an estimated 1 matches for "svmnew".

Did you mean: simnew
2011 May 28
0
how to train ksvm with spectral kernel (kernlab) in caret?
...from the kernlab package. Sadly a svm with spectral kernel is not among the many methods in caret... using caret to train svmRadial: ------------------ library(caret) library(kernlab) data(iris) TrainData<- iris[,1:4] TrainClasses<- iris[,5] set.seed(2) fitControl$summaryFunction<- Rand svmNew<- train(TrainData, TrainClasses, method = "svmRadial", preProcess = c("center", "scale"), metric = "cRand", tuneLength = 4) svmNew ------------------- here is an example on how to train the ksvm with spectral kernel ------------------- # Load th...