SleepyBag/Statistical-Learning-Methods resource
Implement Statistical Learning Methods, Li Hang the hard way. 李航《统计学习方法》一书的硬核 Python 实现 observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
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: 2210
- days_rel: n/a
- days_push: 1551
- n_releases_24m: 0
Adoption not part of the score
1175 stars · 276 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python implementation of every algorithm from Li Hang's textbook 'Statistical Learning Methods', built from scratch with NumPy matrix operations. It covers models like perceptron, kNN with kd-tree, naive Bayes, decision trees, logistic regression, max entropy, HMM with Baum-Welch, and linear chain CRFs, each with runnable examples.
Use cases
- study algorithms from the Statistical Learning Methods book with working code
- see a from-scratch implementation of the max entropy model
- learn how a linear chain conditional random field is implemented
- understand HMM training with the Baum-Welch algorithm
- compare ID3, C4.5, and CART decision tree implementations
- find vectorized NumPy versions of classic ML algorithms
When to choose
- you are reading Li Hang's book and want code for every chapter
- you want educational, detail-complete implementations rather than production libraries
- you need rare implementations like max entropy or linear chain CRF from scratch
When to avoid
- you need a production-ready, well-tested ML library
- you require a maintained package with a license and installable releases
- you want GPU-accelerated or deep learning frameworks
Facets
learning-resource · maturity maintenance
machine-learning data-science machine-learning education tutorials python cross-platform statistical-learning li-hang textbook-implementations educational numpy algorithms-from-scratch
1 source
- readme: https://github.com/SleepyBag/Statistical-Learning-Methods · fetched 2026-08-28 · aada3cd5839b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| SleepyBag/Statistical-Learning-Methods | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="SleepyBag/Statistical-Learning-Methods")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem