Question: Given a decision tree model on a binary classification task, which among the following is the best way to check whether the tree is overfitting?

Given a decision tree model on a binary classification task, which among the following is the best way to check whether the tree is overfitting?

Plot the tree, if it has more than 10 leaves, it may be overfitting.

Plot the tree, if it has more than 25 nodes, it may be overfitting.

Look at the number of observations in each node, if any node has lesser than 50 observations, it may be overfitting.

Compare the accuracy of the tree model on the training and validation sets.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!