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
Get step-by-step solutions from verified subject matter experts
