Question: Now, you will try an SVM using a radial basis function ( RBF ) . RBF should allow you to capture the non - linearity

Now, you will try an SVM using a radial basis function (RBF). RBF should allow you to capture the non-linearity in the data. To create the specification, you should use svm_rbf(). Be sure to pass in classification as the mode and kernlab as the engine. Save your output to svm_rbf_spec.
# YOUR CODE HERE
set.seed(1)
# svm_rbf_spec <-
# your code here
svm_rbf_spec <- svm_rbf()%>%
set_mode("classification")%>%
set_engine("kernlab", scaled = FALSE)
Now fit your model using fit().
# your code here
svm_rbf_fit= function(){
fit(svm_rbf_spec, data = sim_data2)
}
Plot your model. What do you notice?
library(kernlab)
# YOUR CODE HERE
fit_plot <- plot(svm_rbf_fit)
fit_plot
# fit_plot <-
# your code here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!