A model answers a yes-or-no question (is there a cat in this photo?) with a score: positive leans yes, negative leans no, and it can be any size. Write chance_yes(score): turn the score into the chance of yes.
A cat detector scores photos: positive leans “a cat”, negative leans “no cat”, and a score can be any size. The obvious way to turn a score into a chance is a straight rule, 50% plus 10% per point. Watch what it does with a big score.
chance_yes(score)| score | one number, positive leans yes, negative leans no | e.g. −6 |
| returns | the chance of yes | |