promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_

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

Checkpoint

One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.

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.