Machine Learning from Scratch
Learn machine learning by building it — gradient descent, logistic regression, decision trees, and k-means implemented by hand and run in your browser, then the professional scikit-learn stack used correctly.
A machine learning course that teaches the durable skill, not the button. Because an AI can already write model.fit() for you, this course has you implement the algorithms from scratch — the gradient-descent update rule, the sigmoid, entropy and information gain, k-means — in real Python that runs live in your browser. You will build the evaluation tools that catch the expensive mistakes, reproduce the traps that make a broken model look brilliant, and only then meet scikit-learn, used correctly and verified at build time.
Module 1 · Why Machine Learning Still Needs You
What machine learning is, when it is the right tool, and — the question that separates engineers from button-pushers — when it is the wrong one. The honest foundation the rest of the course builds on.
Module 2 · Data Before Models
Models are only as honest as the data underneath them. Build the tools to describe, split, and scale data by hand — and meet your first data-leakage trap, the bug that fakes a great model.
Module 3 · Regression from Scratch
Predict a number, and learn the engine that powers most of ML while you do it: gradient descent. You will implement the update rule, watch the loss fall, and feel where it breaks.
Module 4 · Classification from Scratch
Predict a category. Build logistic regression from the sigmoid up, draw a decision boundary, and understand probabilities you can actually trust — or not.
Module 5 · Evaluation & the Accuracy Trap
The most expensive mistakes in ML are evaluation mistakes. Build the confusion matrix, precision, recall, ROC and PR curves, and calibration — and see why 99% accuracy can mean a useless model.
Module 6 · Trees & Ensembles from Scratch
Decision trees are how ML reasons in if-then steps — and ensembles are how a crowd of weak trees becomes a strong model. Build the split criterion, the tree, and the intuition for bagging vs boosting.
Module 7 · Unsupervised Learning
No labels, only structure. Build k-means, confront the ways clusters mislead, and reduce dimensions — the tools for when nobody told you the right answer.
Module 8 · Overfitting & Honest Validation
The central tension of ML: a model that fits the past too well fails the future. Build regularisation and cross-validation, and the leakage-proof validation that most tutorials get wrong.
Module 9 · How You Get Deceived
The module the market asks for by name: the traps that make a broken model look brilliant. Leakage, drift, spurious correlation, Simpson's paradox, and imbalance — each reproduced and each defended against.
Module 10 · The Professional Stack & Capstone
Now that you have built the ideas by hand, meet the tools professionals actually use — scikit-learn, pipelines — used correctly, verified at build time. Then decide, for a real problem, between classical ML, fine-tuning, and prompting, and ship a capstone.