let
f1_score cm =
2. *. float cm.tp /. float (2 * cm.tp + cm.fp + cm.fn)