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.
2 write-ups
| Title |
|---|
| Checking Gradients How to prove a hand-written backward pass is right: central finite differences, choosing the step, relative error and its thresholds, kinks and randomness, and gradcheck in PyTorch. |
| 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. |