Skip to content
BIASED

Training networks in practice

Block 1 of 7~2 min

Silent failures

Model compression closed the catalogue of methods. Until now the course covered methods under settings that were already chosen and checked; reproducible runs and optional notebooks are a separate practice layer, not a promise that every topic already shipped a Code section with a trained net. On a new problem nobody has tuned those settings yet. The hard part is not the method but the process: a bug in the labels, a learning rate ten times too large or a forgotten model.eval() all give a network that trains — just worse — and no error message says so.

Key idea. Before each step, predict what you should see, run the smallest experiment that tests the prediction, and move on only when it holds. Look at raw examples and labels first; put up baselines that ignore the input or stay linear. Then check the loss at initialization, overfit one batch, find the learning rate, read the curves, and only then spend compute on full runs — one change at a time, every run recorded and seeded.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • One batch — labels and double softmaxoptional

    NumPy one-batch model on X=I₈. A fixed label shift is memorizable; freshly resampled labels each step keep loss near ln 8; double softmax hits floor log(e+C-1)-1. Self-check in the notebook.

    ~30 min · easier on a computer · The Training in practice topic read; softmax cross-entropy basics.

    Self-check in the notebook — not part of mastery or the certificate.