7/16
Part 3 of 7 · A score from Yes and NoLearn and do

Pick the threshold from answers people checked

The score now works like any classifier's: answers at or above a threshold go out, and the rest are held back, the way the evals lesson picks a judge's threshold. Two numbers from answers people checked decide where it goes. Precision is the share of the answers sent that really are supported. Recall is the share of all supported answers that get sent. A higher threshold buys precision and pays in recall.

The shop needs 95% of what it sends to be supported, and within that, it wants to send as much as it can. Here are two thresholds on ten answers people checked:

Ten checked answers at two thresholds
0510
0.91 and up: 3 of 3 sent are supported, 3 of the 6 supported are sent
0.74 and up: 5 of 6 sent are supported, 5 of the 6 supported are sent
sent and supportedheld backsent but not supported

The first meets the 95% bar. The second sends more, but one in six of what it sends is wrong.

In the editor, write best_threshold(probs, labels, min_precision): try each score as the threshold, and keep the one with the most recall whose precision is high enough. It prints the threshold for ten checked answers at two bars, 95% and 80%.