← 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?
- A.Missing numeric values
- B.A crash when a category that was not seen in training (such as a new branch) appears later
- C.Data leakage from the test set
- 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 →