A classifier learns from targets: for a photo of a dog, the usual target is 100% dog and 0% for everything else (“Colors into numbers”). But its chances come from softmax (“Scores into chances”), which only reaches exactly 100% when the dog score is infinitely far above the rest, so a model chasing that target pushes its scores apart forever and grows overconfident (“Score a forecaster”). Write target(correct, classes, doubt): the chances to train toward for a photo whose right answer is class number correct (0 is the first) out of classes, keeping doubt (0 to 1) of your belief spread around.
A dog photo, and the usual target: 100% dog. Watch a classifier train toward it: its chance for dog climbs and climbs, and never gets there, while its score runs away. So keep a little doubt, 0.2 of the belief spread around: where should every class’s chance end up?
target(correct, classes, doubt)| correct | the right class's number (0 is the first) | e.g. 1 |
| classes | how many classes there are | e.g. 4 |
| doubt | 0 to 1, how much of your belief to spread around | e.g. 0 |
| returns | the chance to train toward for each class | |