Session Ready
Exercise

Linear SVM for a radially separable dataset

In this exercise you will build two linear SVMs, one for cost = 1 (default) and the other for cost = 100, for the radially separable dataset you created in the first lesson of this chapter. You will also calculate the training and test accuracies for both costs. The e1071 library has been loaded, and test and training datasets have been created for you and are available in the data frames trainset and testset.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Build a linear SVM using the default cost.
  • Calculate training and test accuracies.