trekhleb/homemade-machine-learning

🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained

56
/ 100
Established

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.

machine-learning-education data-science-fundamentals algorithm-explanation interactive-learning model-comprehension
No Package No Dependents
Maintenance 6 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 24 / 25

How are scores calculated?

Stars

24,300

Forks

4,163

Language

Jupyter Notebook

License

MIT

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.