Skip to content

About

Build a linear Support Vector Machine end-to-end using only basic array operations, implementing the hinge loss, regularized objective, and gradient-based training loop. By the end you'll have a working binary classifier you can train, predict with, and evaluate on real data.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Support Vector Machine from Scratch

Build a linear Support Vector Machine end-to-end using only basic array operations, implementing the hinge loss, regularized objective, and gradient-based training loop. By the end you'll have a working binary classifier you can train, predict with, and evaluate on real data.

How to run

python scaffold.py

Steps

  • 1. standardize_features
  • 2. initialize_parameters
  • 3. compute_scores
  • 4. predict_from_scores
  • 5. hinge_loss_example
  • 6. svm_objective
  • 7. compute_gradients
  • 8. apply_update
  • 9. train_svm
  • 10. predict_labels
  • 11. accuracy_score

Built on Deep-ML.

About

Build a linear Support Vector Machine end-to-end using only basic array operations, implementing the hinge loss, regularized objective, and gradient-based training loop. By the end you'll have a working binary classifier you can train, predict with, and evaluate on real data.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages