1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Support Vector Machines in R

Connected

अभ्यास

Visualizing the dataset

In this exercise you will use ggplot() to visualize the dataset you created in the previous exercise. The dataset is available in the dataframe df. Use color to distinguish between the two classes.

निर्देश

100 XP
  • Load ggplot2 library.
  • Create 2d scatter plot and color the two classes (y = -1 and y = 1) red and blue.