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.
python scaffold.py- 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.