trekhleb/homemade-machine-learning resource
🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained observed · 2026-08-28
Health v2 · maintenance only
56/100
- Activity 53
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2862
- days_rel: n/a
- days_push: 283
- n_releases_24m: 0
Adoption not part of the score
24781 stars · 4193 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A collection of popular machine learning algorithms implemented from scratch in Python, with the underlying mathematics explained. Each algorithm comes with interactive Jupyter Notebook demos for experimenting with training data and visualizing results in the browser.
Use cases
- learn how machine learning algorithms work under the hood
- understand the math behind linear regression and logistic regression
- implement k-means and neural networks from scratch
- find interactive jupyter demos of ml algorithms
- study machine learning fundamentals with code examples
- practice implementing ml algorithms without libraries
When to choose
- you want to deeply understand the mathematics behind ML algorithms
- you prefer learning through readable, from-scratch implementations
- you want interactive notebooks to experiment with parameters and see charts
- you are studying Andrew Ng's machine learning course and want code practice
When to avoid
- you need production-ready, optimized ML implementations
- you want a library with one-liner APIs like scikit-learn
- you need GPU-accelerated or distributed training
- you require guaranteed maintenance and up-to-date dependencies
Facets
learning-resource · maturity maintenance
machine-learning data-visualization math machine-learning education tutorials python from-scratch-implementations jupyter-notebooks interactive-demos supervised-learning unsupervised-learning neural-networks educational algorithms jupyter
1 source
- readme: https://github.com/trekhleb/homemade-machine-learning · fetched 2026-08-28 · 0f17c4eb9c81
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trekhleb/homemade-machine-learning | main | 56 |
For agents
markdown · JSON · MCP: product_card(name="trekhleb/homemade-machine-learning")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem