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
svm.py
works as an entry point. Just run
python example.py
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.