search for: svm_formula

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

Did you mean: sameformula
2009 Oct 23
1
Data format for KSVM
Hi, I have a process using svm from the e1071 library. it works. I want to try using the KSVM library instead. The same data used wiht e1071 gives me an error with KSVM. My data is a data.frame. sample code: svm_formula <- formula(y ~ a + B + C) svm_model <- ksvm(formula, data=train_data, type="C-svc", kernel="rbfdot", C=1) I get the following error: "object is not a matrix" So I tried this: svm_model <- ksvm(formula, data=as.matrix(train_data), type="C-svc",...