#144144th of 171 in Learning and cookbooks

homemade-machine-learning

From-scratch Python implementations of classic ML algorithms with Jupyter demos

Stars
24.9k
License
MIT
Last commit
Nov 2025
Language
Jupyter Notebook
Stars, last 35 weeks+652
25 Mar 2026: 24,226 stars1 Apr 2026: 24,262 stars8 Apr 2026: 24,293 stars15 Apr 2026: 24,306 stars22 Apr 2026: 24,326 stars29 Apr 2026: 24,346 stars6 May 2026: 24,368 stars13 May 2026: 24,378 stars20 May 2026: 24,400 stars27 May 2026: 24,439 stars3 Jun 2026: 24,462 stars10 Jun 2026: 24,478 stars17 Jun 2026: 24,496 stars24 Jun 2026: 24,514 stars1 Jul 2026: 24,532 stars8 Jul 2026: 24,548 stars15 Jul 2026: 24,597 stars22 Jul 2026: 24,622 stars29 Jul 2026: 24,639 stars5 Aug 2026: 24,661 stars12 Aug 2026: 24,680 stars19 Aug 2026: 24,707 stars26 Aug 2026: 24,721 stars2 Sept 2026: 24,731 stars9 Sept 2026: 24,740 stars16 Sept 2026: 24,751 stars23 Sept 2026: 24,764 stars30 Sept 2026: 24,776 stars7 Oct 2026: 24,785 stars14 Oct 2026: 24,805 stars21 Oct 2026: 24,823 stars28 Oct 2026: 24,835 stars4 Nov 2026: 24,846 stars11 Nov 2026: 24,854 stars18 Nov 2026: 24,868 stars25 Nov 2026: 24,878 stars

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
Also in Learning and cookbooks
RankProjectScore
#142pi-textbookChinese-language course for building a Pi-style coding agent in TypeScript1.4k starsMIT29 out of 100
#143scimlbookMIT lecture notes on parallel computing and scientific machine learning2.1k starsno license27 out of 100
#145langchain-chinese-getting-started-guideChinese-language LangChain tutorial with runnable OpenAI examples9.1k starsno license26 out of 100
#146second-brain-ai-assistant-courseSix-module course building an agentic RAG assistant over Notion notes3.2k starsMIT26 out of 100
#147llama-cookbookOfficial Meta notebooks for running, fine-tuning and building apps with Llama models18.6k starsMITno commits in a year25 out of 100