Exercise

Visualizing decision & margin bounds using `plot()`

In this exercise, you will rebuild the SVM model (as a refresher) and use the built in SVM plot() function to visualize the decision regions and support vectors. The training data is available in the dataframe trainset.

Instructions

100 XP
  • Load the library needed to build an SVM model.
  • Build a linear SVM model using the training data.
  • Plot the decision regions and support vectors.