Machine learning, made visual
CodeWithPurpose lessons that explain core ML ideas through live demos and clear visuals. Click any topic to explore — no setup required.

1. What Machine Learning Is
3 chaptersWhat the field actually does, what data has to look like, and what it means for a model to learn.
2. Getting It Right
4 chaptersThe two questions you can ask, why you hold data back, and the failure that catches everyone.
3. Models You Can Picture
3 chaptersThree real algorithms, each simple enough to run by hand on paper — and each wrong in its own instructive way.
4. Making the Number Honest
4 chaptersHow to evaluate a model beyond a single score.
5. Learning Without Labels
3 chaptersEvery model so far needed somebody to write the right answer down first. Three that do not, and the new ways each of them can be wrong.
6. How the Fitting Actually Works
5 chaptersUnder the fit is a search, and under the search is a step size. What the optimiser is doing, what it costs, and what happens to a model after it ships.
Open source
Your lesson goes here
Every lesson here was written by a student. Propose your own topic, or fix one that confused you. Drafts stay invisible until they are ready, so nothing you start can break the site.
Keep building your ML foundation
These lessons are part of CodeWithPurpose's free learning library — built by students, for students, everywhere.