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 |
|---|
| PyTorch Essentials The PyTorch you need for an ML coding round: tensors versus arrays, autograd and accumulating gradients, nn.Module and parameters, devices, no_grad and eval, and the four lines of a training step. |
| 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. |