🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Judging it only by accuracy
  2. B.Removing the rare class
  3. C.Always using a threshold of 0.5
  4. 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 →