The Algorithms logo
The Algorithms
AboutDonate

Svm

R
library(e1071)
x <- cbind(x_train,y_train)
# Fitting model
fit <-svm(y_train ~ ., data = x)
summary(fit)
# Predict Output 
predicted= predict(fit,x_test)