Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Chapter 10: Support Vector Machine Classifier

pp. 495-532

Authors

, Washington State University, USA
  • Get access
  • Add bookmark
  • Export citation
  • Share

Extract

Chapter Objectives

  • • To understand the working principle of support vector machine (SVM).

  • • To comprehend the rules for identification of correct hyperplane.

  • • To understand the concept of support vectors, maximized margin, positive and negative hyperplanes.

  • • To apply an SVM classifier for a linear and non-linear dataset.

  • • To understand the process of mapping data points to higher dimensional space.

  • • To comprehend the working principle of the SVM Kernel.

  • • To highlight the applications of SVM.

10.1 Support Vector Machines

Support vector machines (SVMs) are supervised machine learning (ML) models used to solve regression and classification problems. However, it is widely used for solving classification problems. The main goal of SVM is to segregate the n-dimensional space into labels or classes by defining a decision boundary or hyperplanes. In this chapter, we shall explore SVM for solving classification problems.

10.1.1 SVM Working Principle

SVM Working Principle | Parteek Bhatia, https://youtu.be/UhzBKrIKPyE

To understand the working principle of the SVM classifier, we will take a standard ML problem where we want a machine to distinguish between a peach and an apple based on their size and color.

Let us suppose the size of the fruit is represented on the X-axis and the color of the fruit is on the Y-axis. The distribution of the dataset of apple and peach is shown in Figure 10.1.

To classify it, we must provide the machine with some sample stock of fruits and label each of the fruits in the stock as an “apple” or “peach”. For example, we have a labeled dataset of some 100 fruits with corresponding labels, i.e., “apple” or “peach”. When this data is fed into a machine, it will analyze these fruits and train itself. Once the training is completed, if some new fruit comes into the stock, the machine will classify whether it is an “apple” or a “peach”.

Most of the traditional ML algorithms would learn by observing the perfect apples and perfect peaches in the stock, i.e., they will train themselves by observing the ideal apples of stock (apples which are very much like apples in terms of their size and color) and the perfect peaches of stock (peaches which are very much like peaches in terms of their size and color). These standard samples are likely to be found in the heart of stock. The heart of the stock is shown in Figure 10.2.

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$49.99
Paperback
US$49.99

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers