SpinTheMic
Pro

Interview practice question

Decision tree overfitting badly

Machine Learning · Classical ML · Beginner

Your decision tree gets 100 percent training accuracy and 72 percent on validation. What do you do?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Tree has grown too deep and memorized data.
  • Limit max depth, set min samples per leaf.
  • Prune with cost-complexity.
  • Tune with cross-validation.
  • Switch to random forest or boosting.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics