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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for svmpy-0.2.1.macosx-10.8-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb295e1a59de32e941691d70b38afc82a12717766cc04c90f6989345c0763d47 |
|
MD5 | 43dc22d1e3d87cc5cee7792cfeba835c |
|
BLAKE2b-256 | 9118ec75ea77ca6cc23e8b0ba08dcc031e3b657fe3fa769dc082277154e20029 |