Skip to content

kazuto1011/svm-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support Vector Machines

  • Support Vector Machines (SVMs) with Linear Kernel
  • Stochastic Gradient Descent (SGD)

Requirements

$ pip install matplotlib numpy scikit-learn
$ pip install "torch>=0.4.0"

Example

python main.py --c 0.01 --batchsize 1
Hard margin
c = 0, batchsize = 1
Soft margin
c = 0.01, batchsize = 1

About

Linear SVM with PyTorch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages