In the recursive case, why do we increase the depth of child node by 1?

in the recursive case, why do we increase the depth of child node by 1 ?

hey @ishabehera ,
we are increasing its depth as we need to go down until a particular depth is achieved ( to control overfitting ) or we completed gaining information from the dataset provided.

We need to check at each depth or level ,the way our model will perform , either good or bad , and depending upon that we need to determine in which direction to move ( means either we have to create a left node or right node ) so that we can improve our model’s performance.

I hope this would have resolved your doubt.
Thank You and Happy Learning :slightly_smiling_face:.