search for: predictsvm

Displaying 2 results from an estimated 2 matches for "predictsvm".

Did you mean: predictive
2009 Dec 25
2
Help with SVM package Kernlab
...equest since I got no response for my last post and I am new to the list so pardon me if I am violating the protocol. I am trying to use the "Kernlab" package for training and prediction using SVM's. I am getting the following error when I am trying to use the predict function: > predictSvm = predict(modelforSVM, testSeq); Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") : contrasts can be applied only to factors with 2 or more levels The training file is a data frame with 501 columns: Col 1 is "Class" which is "+" or "-" and Col...
2009 Dec 24
0
Error with Package "Kernlab" for SVM prediction
Hi All, I am trying to use the "Kernlab" package for training and prediction using SVM's. I am getting the following error when I am trying to use the predict function: > predictSvm = predict(modelforSVM, testSeq); Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") : contrasts can be applied only to factors with 2 or more levels The training file is a data frame with 501 columns: Col 1 is "Class" which is "+" or "-" and Col...