Optimize an F1 threshold
Optimize an F1 threshold: a task in UXInteract 0.1 (Harbor dataset). Write solve.py to choose the clarity-score threshold that maximizes binary F1 on the supplied dataset. Run python3 solve.py from the project root. Read test.csv on every run; its columns are url (identifier only), score (finite…
The task
Write `solve.py` to choose the clarity-score threshold that maximizes binary F1 on the supplied dataset. Run `python3 solve.py` from the project root. Read `test.csv` on every run; its columns are `url` (identifier only), `score` (finite real number), and `label` (`clear` or `blurry`). Do not fetch images or use the…
Part of Lego-X/UXInteract.