regressoR (version 1.1.7)

svm_prediction: svm_prediction

Description

generates the code to create the prediction of the support vector machines model.

Usage

svm_prediction(data = "datos.prueba", variable.pred = NULL,
  model.var = "modelo.svm", pred.var = "prediccion.svm")

Arguments

data

the name of the test data.

variable.pred

the name of the variable to be predicted.

model.var

the name of the variable that stores the resulting model.

pred.var

the name of the variable that stores the resulting prediction.

Examples

Run this code
# NOT RUN {
library(e1071)
library(dplyr)

x <- svm_model('iris', 'Petal.Length', model.var = 'model_svm')
exe(x)
print(model_svm)

x <- svm_prediction('iris', 'Petal.Length', 'model_svm', 'my_prediction')
exe(x)
print(my_prediction)

# }

Run the code above in your browser using DataCamp Workspace