1. 学习
  2. /
  3. 课程
  4. /
  5. Support Vector Machines in R

Connected

练习

Generate a 2d uniformly distributed dataset.

The aim of this lesson is to create a dataset that will be used to illustrate the basic principles of support vector machines. In this exercise we will do the first step, which is to create a 2 dimensional uniformly distributed dataset containing 600 datapoints.

说明

100 XP
  • Set the number of data points, n.
  • Generate a dataframe df with two uniformly distributed variables, x1 and x2 lying in (0, 1).