[program-l] Python: How do I evaluate if my decision tree is overfitting

  • From: <pranav@xxxxxxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Mon, 3 Jan 2022 05:15:36 +0530

Hi all,

I have built a decision tree in python using the sklearn library. How do I
evaluate if  it is overfitting or underfitting?

I also need to do some feature engineering in terms of determining which
features are contributing most to my model. I am thinking about using the
shap values but if I print them, I get numbers which I am not sure how to
interpret.

Pranav

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: