Exercise

A multiclass classification problem

In this exercise, you will use the svm() function from the e1071 library to build a linear multiclass SVM classifier for a dataset that is known to be perfectly linearly separable. Calculate the training and test accuracies, and plot the model using the training data. The training and test datasets are available in the dataframes trainset and testset. Use the default setting for the cost parameter.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Load the required library and build a default cost linear SVM.