Linear soft-margin support-vector machine (gradient-descent) implementation in PyTorch and TensorFlow 2.x (and comparison to scikit-learn).
Teaching Material for Machine Learning in Physics VDSP-ESI Winter School 2020: Getting used to ML frameworks and in particular to automatic differentiation.
-
Local:
- create virtual environment
- clone the repository
- install requirements.txt
- start jupyter notebook and open
svm_tf_pytorch.ipynb
-
Colab: Link