← all repositories
vincen-github/mlimpl

A readable zoo of ML algorithms, from bandits to ResNet

Hand-rolled ML algorithms for when importing a library isn’t enough to understand how it works.

633 stars Shell ML FrameworksLearning
mlimpl
Not currently ranked — collecting fresh signals.
star history

What it does mlimpl is a curated collection of educational implementations covering statistical learning, deep learning, and reinforcement learning. Most classes follow a scikit-learn-style API with fit, predict, and score methods, but the internals are left open for reading and hacking. The repo spans multi-armed bandits and Markov decision processes on the RL side, through LSTMs, VAEs, and a full ResNet50 training loop on the deep learning side.

The interesting bit The author leaves in the battle scars. The ResNet50 write-up openly admits hitting a CPU bottleneck while sharding ImageNet1K into HDF5 files, and only reaching 68.1% validation accuracy after 64 epochs—well below the paper’s 78%. There is even a bare-bones autograd engine built without PyTorch, tracing gradients through a manual computational graph so you can see how automatic differentiation actually works.

Key highlights

  • Scikit-learn-like class structure (fit, predict, score) across most algorithms.
  • Broad coverage: RL basics (UCB, policy gradient, MDP), classic deep learning (GAN, CNN, VAE, LSTM), and modern self-supervised learning (Barlow Twins, VicReg, SimCLR).
  • A from-scratch autograd system using computational graphs, no Torch required.
  • Honest notes on practical hurdles, like grayscale edge cases in custom ImageNet dataloaders and TensorFlow 1-era CAPTCHA CNNs.

Caveats

  • The codebase is a mix of PyTorch, TensorFlow 1, MATLAB, and NumPy, so consistency varies by folder.
  • Some entries read more like course homework or competition write-ups than polished libraries.

Verdict Ideal for students, interview preppers, or anyone who learns by reading source code rather than import statements. Skip it if you need production-grade, maintained packages.

Frequently asked

What is vincen-github/mlimpl?
Hand-rolled ML algorithms for when importing a library isn’t enough to understand how it works.
Is mlimpl open source?
Yes — vincen-github/mlimpl is an open-source project tracked on heatdrop.
What language is mlimpl written in?
vincen-github/mlimpl is primarily written in Shell.
How popular is mlimpl?
vincen-github/mlimpl has 633 stars on GitHub.
Where can I find mlimpl?
vincen-github/mlimpl is on GitHub at https://github.com/vincen-github/mlimpl.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.