Support Vector Machines in R
This course will introduce the support vector machine (SVM) using an intuitive, visual approach.
Start Course for Free4 hours13 videos47 exercises10,218 learnersStatement of Accomplishment
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Training 2 or more people?
Try DataCamp for BusinessLoved by learners at thousands of companies
Course Description
This course will introduce a powerful classifier, the support vector machine (SVM) using an intuitive, visual approach. Support Vector Machines in R will help students develop an understanding of the SVM model as a classifier and gain practical experience using R’s libsvm implementation from the e1071 package. Along the way, students will gain an intuitive understanding of important concepts, such as hard and soft margins, the kernel trick, different types of kernels, and how to tune SVM parameters. Get ready to classify data with this impressive model.
Training 2 or more people?
Get your team access to the full DataCamp platform, including all the features.In the following Tracks
Machine Learning Scientist in R
Go To TrackSupervised Machine Learning in R
Go To Track- 1
Introduction
FreeThis chapter introduces some key concepts of support vector machines through a simple 1-dimensional example. Students are also walked through the creation of a linearly separable dataset that is used in the subsequent chapter.
Sugar content of soft drinks50 xpVisualizing a sugar content dataset100 xpIdentifying decision boundaries50 xpFind the maximal margin separator100 xpVisualize the maximal margin separator100 xpGenerating a linearly separable dataset50 xpGenerate a 2d uniformly distributed dataset.100 xpCreate a decision boundary100 xpIntroduce a margin in the dataset100 xp - 2
Support Vector Classifiers - Linear Kernels
Introduces students to the basic concepts of support vector machines by applying the svm algorithm to a dataset that is linearly separable. Key concepts are illustrated through ggplot visualisations that are built from the outputs of the algorithm and the role of the cost parameter is highlighted via a simple example. The chapter closes with a section on how the algorithm deals with multiclass problems.
Linear Support Vector Machines50 xpCreating training and test datasets100 xpBuilding a linear SVM classifier100 xpExploring the model and calculating accuracy100 xpVisualizing Linear SVMs50 xpVisualizing support vectors using ggplot100 xpVisualizing decision & margin bounds using `ggplot2`100 xpVisualizing decision & margin bounds using `plot()`100 xpTuning linear SVMs50 xpTuning a linear SVM100 xpVisualizing decision boundaries and margins100 xpWhen are soft margin classifiers useful?50 xpMulticlass problems50 xpA multiclass classification problem100 xpIris redux - a more robust accuracy.100 xp - 3
Polynomial Kernels
Provides an introduction to polynomial kernels via a dataset that is radially separable (i.e. has a circular decision boundary). After demonstrating the inadequacy of linear kernels for this dataset, students will see how a simple transformation renders the problem linearly separable thus motivating an intuitive discussion of the kernel trick. Students will then apply the polynomial kernel to the dataset and tune the resulting classifier.
Generating a radially separable dataset50 xpGenerating a 2d radially separable dataset100 xpVisualizing the dataset100 xpLinear SVMs on radially separable data50 xpLinear SVM for a radially separable dataset100 xpAverage accuracy for linear SVM100 xpThe kernel trick50 xpVisualizing transformed radially separable data100 xpSVM with polynomial kernel100 xpTuning SVMs50 xpUsing `tune.svm()`100 xpBuilding and visualizing the tuned model100 xp - 4
Radial Basis Function Kernels
Builds on the previous three chapters by introducing the highly flexible Radial Basis Function (RBF) kernel. Students will create a "complex" dataset that shows up the limitations of polynomial kernels. Then, following an intuitive motivation for the RBF kernel, students see how it addresses the shortcomings of the other kernels discussed in this course.
Generating a complex dataset50 xpGenerating a complex dataset - part 1100 xpGenerating a complex dataset - part 2100 xpVisualizing the dataset100 xpMotivating the RBF kernel50 xpLinear SVM for complex dataset100 xpQuadratic SVM for complex dataset100 xpThe RBF Kernel50 xpPolynomial SVM on a complex dataset100 xpRBF SVM on a complex dataset100 xpTuning an RBF kernel SVM100 xp
Training 2 or more people?
Get your team access to the full DataCamp platform, including all the features.In the following Tracks
Machine Learning Scientist in R
Go To TrackSupervised Machine Learning in R
Go To Trackcollaborators
prerequisites
Introduction to RKailash Awati
See MoreSenior Lecturer at University of Technology Sydney.
What do other learners have to say?
FAQs
Join over 15 million learners and start Support Vector Machines in R today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.