← Quiz: Classification: all 10 questions
Quiz: Classification · Question 10 of 10
Which option helps a classifier when one class is rare?
Which option helps a classifier when one class is rare?
- A.Judging it only by accuracy
- B.Removing the rare class
- C.Always using a threshold of 0.5
- D.Using class_weight="balanced" and checking precision and recall
Answer & explanation
Correct answer: Using class_weight="balanced" and checking precision and recall
Rare classes need special care and the right metrics.
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 →