Skip to content
Road to Intelligence

Chapter 2 · The Math Toolkit

Confident and Wrong

Adjust a model's scores for the next word and watch cross-entropy loss and perplexity respond — the exact quantity language models are trained to minimize.

Try it · toy model

6 min