Naive SVM library in Python
Project description
Introduction
This is a basic implementation of a soft-margin kernel SVM solver in Python using numpy and cvxopt.
Demonstration
Run bin/svm-py-demo –help.
∴ bin/svm-py-demo --help usage: svm-py-demo [-h] [--num-samples NUM_SAMPLES] [--num-features NUM_FEATURES] [-g GRID_SIZE] [-f FILENAME] optional arguments: -h, --help show this help message and exit --num-samples NUM_SAMPLES --num-features NUM_FEATURES -g GRID_SIZE, --grid-size GRID_SIZE -f FILENAME, --filename FILENAME
For example,
bin/svm-py-demo --num-samples=100 --num-features=2 --grid-size=500 --filename=svm500.pdf
yields the image
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
svmpy-0.2.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for svmpy-0.2.2.macosx-10.8-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a696efa441438fc5c5fcf5071a7383a8606a26383b69ea69a611d0ae8a9b39ee |
|
MD5 | 72b37649031e7f9b1afe71cdab574550 |
|
BLAKE2b-256 | 7bb7f624e6f0f7fa12d9fd40e8250225ed99fc55b0a396c408889cb0cf0356a7 |