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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
svmpy-0.1.macosx-10.8-x86_64.exe
(65.4 kB
view hashes)
Close
Hashes for svmpy-0.1.macosx-10.8-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427cd512744930b7da513fabe3378476d9299957e60cf1249d697f99ce9535f1 |
|
MD5 | da76bb1c20ef7c93b3089273f11c5950 |
|
BLAKE2b-256 | 59ac5e15cda7d12bf6be4fb17822e7e24474cb8101a5fffb7384a520cf9ea892 |