Displaying 1 result from an estimated 1 matches for "classset".
Did you mean:
classses
2010 Feb 18
3
svm regression
Hi,
I am trying to use svm for regression data.
this is how my data looks like:
>dataTrain
x y z
1 4 6
2 5 4
3 7 5
>classTrain
a
2
3
4
>dataTest
x y z
1 7 2
2 8 3
>classTest
a
3
4
5
building the model
model<-svm(dataTrain,classTrain,type="nu-regression")
pred <- predict(model, dataTest)
> pred
1 2
3.008842 3.120078
I