$ ./guess_the_languageAI & ML
AI & ML · hard · #19

What is the F1 score for the positive class?

              Pred +   Pred -
Actual +       30       10
Actual -       20       40
  1. 0.67
  2. 0.60
  3. 0.75
  4. 0.70
Precision = 30/50 = 0.60, recall = 30/40 = 0.75, F1 = 2PR/(P+R) = 0.90/1.35 = 0.67.
Play AI & ML ▸