← Quiz: Classification: all 10 questions
Quiz: Classification · Question 6 of 10
What does this print? (code)
What does this print?
tp, fp, fn = 30, 10, 20
precision = tp / (tp + fp)
recall = tp / (tp + fn)
print(precision, recall)
- A.0.6 0.75
- B.0.75 0.6
- C.0.75 0.75
- D.0.5 0.6
Answer & explanation
Correct answer: 0.75 0.6
Precision = 30 / 40; recall = 30 / 50.
Can you get the rest right without peeking?
Take the timed Quiz: Classification quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →