Skip to content

A Simple Machine Learning Support Vector Machine Implementation

License

Notifications You must be signed in to change notification settings

chandl/ML-Support-Vector-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support Vector Machine Example - Machine Learning

This is code to practice concepts of Support Vector Machines

Overview

This code is implementing a Support Vector Machine with Hinge loss and gradient descent to find the optimal decision boundary between two classes of data.

The svm.py file is extensively documented with information about Support Vector Machines and the math that goes into them.

This implementation is using a pre-defined, small sample of meaningless data. It was used to learn the concepts of SVMs.

Dependencies

  • Python
  • numpy
  • matplotlib

Usage

Just run python3 svm.py to see the results:

Plot of the Rate of classification errors during training

The rate of classification errors during training

Plot of the Hyperplane generated by the SVM

A plot of the hyperplane generated by the support vector machine

Credits

Credits for this project go to this video on Youtube by Siraj Raval that explains Support Vector Machines.

About

A Simple Machine Learning Support Vector Machine Implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages