Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x <- array(data = c(0,0,1,1,0,1,0,1),dim=c(4,2))
- y<-factor(c(1,-1,-1,1))
- model<-svm(x,y,type="C-classification")
- predict(model,x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement