A pipeline company trains a model to spot cracked welds in X-ray photos. In a test set of 600 photos, 60 welds are truly cracked. Every photo the model flags gets a second look from an inspector, so a false alarm costs a few minutes of their time. A missed crack can mean a leak.
The model outputs a crack probability, and two thresholds are on the table:
| Threshold | Photos flagged as cracked | Flagged photos that are truly cracked |
|---|---|---|
| 0.7 (cautious) | 31 | 28 |
| 0.2 (eager) | 159 | 55 |
F1 treats a missed crack and a false alarm as equally bad. The team wants a score that cares more about Recall, so it uses the F-beta score:
With this is exactly F1. A larger gives Recall more say. The team uses .
Which threshold has the higher , and what is that ? Enter the as a decimal between 0 and 1, rounded to 3 decimal places.