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 |
|---|
| Numerical Stability Why exp overflows and log underflows, and the fixes interviewers look for: log-sum-exp, stable softmax and sigmoid, losses from logits, sized epsilons, and float16 and bfloat16 pitfalls. |
| Softmax and Cross-Entropy A stable softmax and cross-entropy in NumPy, from the formula that overflows to log-sum-exp, the combined gradient with respect to the logits, label smoothing and one gradient step. |