1. Learn
  2. /
  3. Courses
  4. /
  5. Support Vector Machines in R

Connected

Exercise

Introduce a margin in the dataset

Your final task for Chapter 1 is to create a margin in the dataset that you generated in the previous exercise and then display the margin in a plot. The ggplot2 library has been preloaded for you. Recall that the slope of the linear decision boundary you created in the previous exercise is 1.4.

Instructions

100 XP
  • Introduce a margin delta of 0.07 units in your dataset.
  • Replot the dataset, displaying the margin boundaries as dashed lines and the decision boundary as a solid line.