promptdojo_

Precision, recall, and threshold tradeoffs — step 7 of 7

Checkpoint

One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.

Run the threshold sweep and make the two product calls. Print the report line for 0.80, 0.50, 0.05 (same format as the write step), then pick operating points: for a recall-matters product take the threshold with the best recall (precision as tiebreak); for a precision-matters product the best precision (recall as tiebreak). Print f"ship for recall-matters: {th:.2f}" and f"ship for precision-matters: {th:.2f}".

full-screen editor opens — close anytime to keep reading.