Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

A Comprehensive Guide to Support Vector Machine (SVM) Algorithm

Arash hadad
Python in Plain English
5 min readSep 19, 2024

Support Vector Machines (SVM) are a powerful set of supervised learning algorithms used for classification, regression, and outlier detection. In this article, we’ll dive deep into the SVM algorithm, explore its working principles, and provide practical code examples using Python and the Scikit-learn library.

What is a Support Vector Machine (SVM)?

SVM is a supervised learning model primarily used for binary classification tasks. It works by finding the hyperplane that best separates the data points of different classes in a high-dimensional space. The goal of SVM is to maximize the margin between the data points of different classes while ensuring that they are correctly classified.

Key Terminology in SVM:

  • : A decision boundary that separates data points of different classes.
  • : The distance between the hyperplane and the nearest data point of either class.
  • : Data points closest to the hyperplane that influence its position and orientation.
  • : A technique used to transform non-linearly separable data into higher dimensions where it becomes linearly separable.

How Does SVM Work?

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Written by Arash hadad

Python Developer & Data scientist Check my bot price tracker in telegram for free: https://t.me/MarketStation_bot

No responses yet

Write a response