Skip to content

Python implementation of Support Vector Machine (SVM) classifier

Notifications You must be signed in to change notification settings

cperales/SupportVectorMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support Vector Machine

This repository is a simple Python implementation of SVM, using cvxopt as base solver.

  • Linear SVM for 2 classes
  • Kernel SVM for 2 classes
  • Multi classification

Example

svm.py works as an entry point. Just run

python example.py

Python environment

It's recommended to install a virtual environment

virtualenv -p python3 env

For activating the virtual environment,

source env/bin/activate

To deactivate, just run deactivate.

Then, you need to install the requirements

pip install -r requirements.txt

You can install just the requirements if you don't want to create a virtual environment.

About

Python implementation of Support Vector Machine (SVM) classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages