Skip to content
Prev 256421 / 398506 Next

In svm(), how to connect quantitative prediction result to categorical result?

Hi Yunfei,
On Fri, Apr 8, 2011 at 8:35 PM, Li, Yunfei <yunfei_li at wsu.edu> wrote:
You have to figure out if you want the svm to do classification or regression.

If I remember correctly, a "vanilla" call to SVM will try to pick one
or the other in a "smart way" by looking at the types (and values) of
your labels (y vector).

You can be more explicit and tell the SVM what you want by specifying
a value for the `type` argument in your original `svm` call.

See ?svm for more info.

I'm not sure if I'm answering your question or not(?). If I didn't
understand what you wanted, perhaps you can rephrase your question, or
maybe explain how my answer is not what you were after ... otherwise
hopefully someone else can provide a better answer.

-steve