#144144th of 171 in Learning and cookbooks
homemade-machine-learning
From-scratch Python implementations of classic ML algorithms with Jupyter demos
Watch puts homemade-machine-learning on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.homemade-machine-learning is on your watch list. Its new releases and problems show there.
- Stars
- 24.9k
- License
- MIT
- Last commit
- Nov 2025
- Language
- Jupyter Notebook
24,226 on 25 Mar 202624,878 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Before you pick it
- No commits in a year. The last commit was on 2025-11-23; fixes and security patches may not come. Source (opens in a new tab), checked .
Overview
Educational repository implementing linear regression, logistic regression, k-means, Gaussian anomaly detection and a multilayer perceptron in Python, each with a math write-up. Every algorithm has a Jupyter notebook demo on datasets such as MNIST, Fashion MNIST and Iris, viewable in NBViewer or runnable in Binder. The author states the code is for learning, not production.
Who it is for: Students learning the math behind classic machine learning algorithms
Strengths
- Each algorithm has a math explanation, a Python implementation and a notebook demo
- Notebooks open in NBViewer or Binder without a local install
- Demos use concrete datasets: MNIST, Fashion MNIST, Iris, country happiness
Weaknesses
- Author states the implementations are not intended for production use
- Covers only a handful of classic algorithms; no CNNs, transformers or LLMs
- Explanations largely follow Andrew Ng's Coursera course
- No releases; last commit 2025-11-23
What it needs
- no GPU
- Needs Python, Jupyter Notebook
- port 8888
Also in Learning and cookbooks
See all 171| Rank | Project | Score |
|---|---|---|
| #142 | pi-textbookChinese-language course for building a Pi-style coding agent in TypeScript | 29 out of 100 |
| #143 | scimlbookMIT lecture notes on parallel computing and scientific machine learning | 27 out of 100 |
| #145 | langchain-chinese-getting-started-guideChinese-language LangChain tutorial with runnable OpenAI examples | 26 out of 100 |
| #146 | second-brain-ai-assistant-courseSix-module course building an agentic RAG assistant over Notion notes | 26 out of 100 |
| #147 | llama-cookbookOfficial Meta notebooks for running, fine-tuning and building apps with Llama models | 25 out of 100 |