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 nonlinearity in the data. To create the specification, you should use svmrbf Be sure to pass in classification as the mode and kernlab as the engine. Save your output to svmrbfspec.
# YOUR CODE HERE
set.seed
# svmrbfspec
# your code here
svmrbfspec svmrbf
setmodeclassification
setenginekernlab scaled FALSE
Now fit your model using fit
# your code here
svmrbffit function
fitsvmrbfspec, data simdata
Plot your model. What do you notice?
librarykernlab
# YOUR CODE HERE
fitplot plotsvmrbffit
fitplot
# fitplot
# your code here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
