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.tar.gz
(3.7 kB
view hashes)
Built Distribution
svmpy-0.2.macosx-10.8-x86_64.exe
(65.4 kB
view hashes)
Close
Hashes for svmpy-0.2.macosx-10.8-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c474ddf4a9ecfada1ae6e322bd5f105065e7047f2a7d5528cfffb2dfe5cafba |
|
MD5 | f9934198592870c7ac48a4ea7eb9c6c8 |
|
BLAKE2b-256 | 9fc996bba241fc7799ef6ceef9be48b2e7bed5fbd7de93c4e5d997c6b347d270 |