Ch 4 · How Models Learn — Gradient Descent · Machine Learning & AI
Topic 4 of 13 in Machine Learning & AI — Foundations — 2 lessons.
Walking Downhill
Most models can't be solved with a neat formula, so they learn by nudging. Picture the error as a valley: gradient descent feels which way is downhill (the gradient) and takes a small step that way, again and again, until the error stops dropping. The step size is the learning rate.
Training a Line by Hand
Here is the whole idea in ~10 lines: start with w=0, b=0, and repeatedly nudge them down the error slope.
All topics in Machine Learning & AI Beginner
- What Is Machine Learning?
- Data — Features, Labels & Splitting
- Linear Regression — Fitting a Line
- How Models Learn — Gradient Descent
- Classification — Predicting Categories
- Decision Trees
- Evaluating a Model Honestly
- Overfitting & the Bias-Variance Tradeoff
- The ML Workflow
- Mini-Project — A Spam Classifier
- Clustering — Finding Groups Without Labels
- Your First Real scikit-learn Model
- Words as Numbers — A Taste of NLP