The maths — from scores to odds.
Part 1 of 2. The two foundations — a probability and a distribution — plus the softmax engine that turns the model’s raw scores into odds.
You don't need any of this to carry on — if maths isn't your thing, skip ahead with nothing lost. But if you want to see the actual machinery, here are the few mathematical ideas the lesson quietly leaned on, each in plain language with the formula beside it.
They all serve one job: turning the model's raw scores into probabilities, and reading the next note out of them.
Start with the engine that does it — softmax. Nudge the three raw scores for three candidate notes and watch them become probabilities that always add up to 100%.
The formulas, in one place.
Each is written the way you'd meet it in a textbook, with a plain-language line above and where it turned up in this lesson below.
That's the foundation.
A probability is a number from 0 to 1; a distribution is a full set of them that sums to 1; and softmax is the engine that turns the model's raw scores into that set. Part 2 is the why under that demo: why the model works in raw scores (logits), why softmax is the right way to turn them into odds, and how it commits to a single note — motivation first, then worked through.