Home › Resources & tools › SVMs in practice

SVMs in practice

Binary classification is a type of supervised learning that involves prediction over two classes. Examples of binary classification problems include determining whether an email is spam or "ham" (non-spam), or whether or not a customer is likely to convert based on how they have engaged with promotional material.

Support vector machines, or SVMs for short, are a common binary classification technique known for its versatility and robustness. In a nutshell, SVMs rely on constructing the boundary that creates maximum separation between the two classes—the one that has maximum margin from the nearest points of the classes.

Compared to other binary classification approaches, SVM models exhibit good generalisation, perform well on high-dimensional data, and are known to be easier to interpret. On the other hand, due to their non-probabilistic nature, ordinary SVMs do not directly output probability distributions or confidence scores over classes.

As with all binary classifiers, the performance of SVMs can be quantified using a variety of metrics such as precision, recall (sensitivity), and specificity (selectivity). In general, dimensionality reduction is often employed to boost the accuracy and performance of all types of predictive models, including SVMs.

SVMs are available in a number of well-known machine learning libraries such as Python's scikit-learn. Internally, scikit-learn utilises libsvm and liblinear that are implemented in C++ to efficiently handle all computations.

See also

Bestseller
English Pronunciation Dictionary
$29.99

A guide to English pronunciation. Features broad phonemic transcriptions indicated using IPA.

In development
Māori Pronunciation Dictionary

A pronunciation dictionary of te reo Māori with IPA transcriptions.

Russian Pronunciation Dictionary
$29.99

A pronunciation dictionary of the Russian language with IPA transcriptions.

Belarusian Pronunciation Dictionary
$29.99

A pronunciation dictionary of the Belarusian language with IPA transcriptions.

In development
Arabic Pronunciation Dictionary

A pronunciation dictionary of the Arabic language with IPA transcriptions.

seq2seq Trainer

Train sequence-to-sequence models online.

A technical introduction to OpenAI's GPT-3 language model

An overview of the groundbreaking GPT-3 language model created by OpenAI.

TensorFlow.js and linear regression

Building and training simple linear regression models in JavaScript using TensorFlow.js.

Text to IPA

A machine learning model that converts English text to phonetics.

DALL·E Client

Create images from text using OpenAI's DALL·E.

All prices listed are in United States Dollars (USD). Visual representations of products are intended for illustrative purposes. Actual products may exhibit variations in color, texture, or other characteristics inherent to the manufacturing process.