ML Coding from Scratch
"Implement X in NumPy" questions. Each snippet is self-contained and ends with a quick check — copy it into a file and run it (pip install numpy).
Tips: vectorize (no Python loops over samples), mind shapes (write them in comments), use numerically stable formulas (log-sum-exp), and seed randomness.
Articles
Showing 25 of 25