Skip to main content

By Andrew Tulloch (http://tullo.ch)

Introduction

This is a basic implementation of a soft-margin kernel SVM solver in Python using numpy and cvxopt.

See http://tullo.ch/articles/svm-py/ for a description of the algorithm used and the general theory behind SVMs.

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

http://i.imgur.com/yy0oUVk.png

Release files for svmpy 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for svmpy 0.3
File Size Uploaded
svmpy-0.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for svmpy 0.3
File Interpreter ABI Platform
svmpy-0.3.macosx-10.8-x86_64.exe Details

Total release size: 70.8 kB

Release files / svmpy-0.3.tar.gz

Download URL svmpy-0.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1dca219d7eec0b8fb2d59a16dd754208a7d689b293054d3762dc888802853cde
BLAKE2b-256 checksum
How to use checksums
391ee3828cc9a38db7cd660e776d1a1ead66bb67c5bfddd589926e8ee11d3cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / svmpy-0.3.macosx-10.8-x86_64.exe

Download URL svmpy-0.3.macosx-10.8-x86_64.exe
Size 66.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7842b445b449f2108462311afa054690ee056f2e9c050acd815281fa6ce7bc33
BLAKE2b-256 checksum
How to use checksums
2f743d2a8fb7c14193beed97ae54fe8c4b02fe100cf434383fb0aa1b1b04f6b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page