YBX.

Research · · 简体中文

Precision and recall for a triage agent: two thresholds on ten cases

On ten labeled examples, lowering the threshold from 0.70 to 0.50 caught one more urgent message and sent one more routine message to review. The counts show what that trade costs an operator.

Start with labeled examples and fixed scores

We ran a local Python calculation on synthetic cases. Four urgent messages had scores 0.92, 0.86, 0.74 and 0.55. Six routine messages had scores 0.81, 0.63, 0.40, 0.33, 0.25 and 0.10. A score at or above the threshold sent a message to review.

At 0.70, four messages went to review and three were urgent. Precision was 3/4, or 75%. The rule caught three of the four urgent cases, so recall was also 75%.

At 0.50, six messages went to review and four were urgent. Precision fell to 4/6, about 66.7%, while recall rose to 4/4, or 100%. The review queue grew from four to six messages.

Choose what to measure on real traffic

Check how much review capacity the team has and how costly it is to miss an urgent case. Compare counts as well as rates. For a deployed system, estimate them on a separate labeled set and include operational slices such as each intake channel. The ten-case example shows the calculation using fixed scores generated for illustration.

Sources

Related reading