🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Evaluation and Tuning: all 10 questions

Quiz: Evaluation and Tuning · Question 8 of 10

What does OneHotEncoder(handleunknown="ignore") protect against?

What does OneHotEncoder(handle_unknown="ignore") protect against?

  1. A.Missing numeric values
  2. B.A crash when a category that was not seen in training (such as a new branch) appears later
  3. C.Data leakage from the test set
  4. D.Too many trees
Answer & explanation

Correct answer: A crash when a category that was not seen in training (such as a new branch) appears later

Unknown categories are encoded as all zeros instead of raising an error.

Can you get the rest right without peeking?

Take the timed Quiz: Evaluation and Tuning quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →