ML coding
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
3 write-ups
| Title |
|---|
| Getting Shapes Right Habits that keep shapes right in ML code: name every dimension, assert at boundaries, spot broadcasts that hide bugs, reshape versus transpose, and test on tiny inputs with sizes that all differ. |
| Debugging ML Code The find-the-bugs variant of the ML coding round: how to work it, and the bugs it plants: silent broadcasts, wrong axes, off-by-one masks, leaking state, and a loss that won't fall. |
| Writing a Training Loop A PyTorch training loop from full-batch steps to shuffled mini-batches, a clean eval, checkpoints that resume exactly, and the bugs that make the loss not fall. |