#2323rd of 23 in Learning and cookbooks

homemade-machine-learning

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

Stars
24.8k
License
MIT
Last commit
Nov 2025
Language
Jupyter Notebook

Missed the latest GitHub check; these facts may be older.

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 23
Also in Learning and cookbooks
RankProjectScore
1ai-engineering-from-scratchHands-on AI engineering curriculum with 542 lessons across 20 phases69.1k starsMIT85 out of 100
2generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript121.4k starsMIT81 out of 100
3hello-agentsChinese-language course on building LLM agents from scratch83.1k starscustom license77 out of 100
#4llms-from-scratchCode for the book on building a GPT-style LLM in PyTorch106.5k starscustom license76 out of 100
#5ai-agents-for-beginners18-lesson course on building AI agents with Microsoft Agent Framework77.2k starsMIT76 out of 100