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 |
|---|
| Optimizers: SGD, Momentum, Adam SGD, momentum, Adam and AdamW in NumPy, with bias correction, L2 against decoupled weight decay, warmup and cosine schedules, checked against torch.optim. |
| Dropout and Regularization Inverted dropout as a NumPy layer with train and eval modes and a backward pass, then L2 regularization and early stopping on a model that overfits, with tests and PyTorch checks. |
| 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. |