40 problems of the kind set in the implementation round of ML engineering, research and quant interviews: write the softmax, the backward pass, the attention layer or the AUC yourself, without a library.
Each file holds the problem statement, a starter function and the test table. Write the function, then run the
file: python problems/stable_softmax.py. NumPy is the only dependency.
The lessons, hints, worked solutions and an in-browser editor are at https://academicquant.co.uk/machine-learning-coding?utm_source=github&utm_medium=repo
The problems and tests are original. Every reference solution is checked against an independent implementation (exact arithmetic, brute force or finite differences) on these tests and on random inputs.