🎙 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 9 of 10

Why is maxdepth=3 used for the decision tree in this lesson?

Why is max_depth=3 used for the decision tree in this lesson?

  1. A.Deeper trees cannot be trained
  2. B.A small tree is readable as if/else rules and is less likely to memorise the training data
  3. C.It makes the tree a regression model
  4. D.It is required by stratify=y
Answer & explanation

Correct answer: A small tree is readable as if/else rules and is less likely to memorise the training data

Unlimited trees overfit, as the next lesson shows.

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 →