Fifteen labs, all running in your browser with nothing to install. The book prints the finished table. The first three build it in front of you, one target word at a time, counting from the text on screen rather than from a stored table. The animations have a step button, so you can stop anywhere and check a number by hand before moving on. Labs 04 to 10 are playgrounds: move a slider and watch a model change. Lab 11 steps through a table the same way the first three do.
Two sentences that mean opposite things, dropped word by word into a bag. Both bags come out identical.
A ramped ten-word window fills two matrices. The left pass and the right pass disagree, and that asymmetry is the point.
A symmetric four-word window fills one matrix, which is step one of the three that make a COALS vector.
Temperature, top-k and top-p reshape one distribution, and a beam of width two finds the sentence greedy misses.
A query against keys, why scores are divided by the square root of d_k, and what the causal mask does to the weights.
BM25 rescores documents term by term as you edit them, and reciprocal rank fusion merges two rankings that disagree.
Edit a tiny corpus, slide alpha and watch perplexity trace the U-curve, then mix unigram, bigram and trigram estimates.
Move the cut through a ranked list and watch the confusion matrix, precision, recall, ROC and precision-recall curves move.
Send a gradient back through many steps and watch it vanish or explode, see how an LSTM forget gate keeps it alive, and what clipping does.
Turn comparisons into a loss, watch the KL penalty stop reward hacking, and read the DPO margin.
Fill the minimum edit distance table for any two words, change the penalties, and read the cheapest edits off the finished table.
These four sit on the course home page as tabs, and run on text you supply.
Train byte-pair encoding on your own text and watch the merges form.
Fit Zipf and Heaps to a real corpus and see the long flat tail.
Do arithmetic on word vectors and see what the analogy trick can and cannot do.
Generate text from an n-gram model and turn the temperature up until it breaks.
The first three belong to Count Vectors, PPMI, and SVD, the chapter where a word stops being a symbol and becomes a row of numbers. Read the chapter for the arithmetic, run hal.py and coals.py to reproduce the tables, and use these when you want to see the counts land.