trekhleb/homemade-machine-learning
🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained
This project helps machine learning practitioners understand how core algorithms work by providing detailed, interactive examples. You input training data, and the notebooks demonstrate how the algorithms process it, explaining the math and showing the resulting predictions or classifications directly in your browser. This is ideal for students or data scientists who want to build a deeper, fundamental understanding of machine learning.
24,300 stars.
Use this if you are a data science student or machine learning engineer who wants to learn the mathematical foundations of common ML algorithms by implementing them from scratch, rather than just using pre-built libraries.
Not ideal if you need ready-to-use, production-grade machine learning models or libraries for immediate deployment in real-world applications.
Stars
24,300
Forks
4,163
Language
Jupyter Notebook
License
MIT
Category
Last pushed
Nov 23, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/trekhleb/homemade-machine-learning"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related frameworks
musicinformationretrieval/musicinformationretrieval.com
Instructional notebooks on music information retrieval.
numerai/example-scripts
A collection of scripts and notebooks to help you get started quickly.
Arm-Examples/ML-examples
Arm Machine Learning tutorials and examples
akabe/ocaml-jupyter
An OCaml kernel for Jupyter (IPython) notebook
lazyprogrammer/machine_learning_examples
A collection of machine learning examples and tutorials.