Support Vector Machine (SVM) from Scratch - Machine Learning Math & Python [Code Fix in Description]

Publié le: 19 January 2024
sur la chaîne: kai
2,705
95

IMPORTANT: As @ruima3847 pointed out, I made a mistake with the `calc_gradient` function after the 46:00 mark. Be sure to check their pinned comment or the updated GitHub repository for the correct code changes!

This video covers Support Vector Machine (SVM) classification from scratch. This will include the math, intuition, and implementation of the SVM model with Python in a Jupyter Notebook.

We will open with the Hard Margin to build intuition on SVMs before moving into the Soft Margin model. At the Soft Margin stage, we will cover the math and implementation of the decision boundary, margin, hinge loss, cost function, and finally gradient descent to achieve a minimum cost.

View Notebook on GitHub: https://github.com/kailau02/machine-l...

Portfolio: https://kailauapps.com/

LinkedIn:   / dylan-kai-lau  

0:00 Overview
1:04 Hard Margin SVM
13:20 Soft Margin SVM Setup
15:18 Slack Variable
19:04 Derive Cost Function
21:33 Hinge Loss Intuition
25:47 Python Decision Boundary & Cost Function
36:25 Gradient Descent Intuition
40:50 Gradient Descent Math
45:40 Python Gradient Descent


Sur cette page du site, vous pouvez voir la vidéo en ligne Support Vector Machine (SVM) from Scratch - Machine Learning Math & Python [Code Fix in Description] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur kai 19 January 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,705 fois et il a aimé 95 téléspectateurs. Bon visionnage!