Need clarification on hyperparam tuning and graph plot

  1. Should we stick to the max_depth 20? I see that we have test methods for tuning hyperparams, so I hope it is fine to tune the best fit even further and find a better value for max_depth.Correct me if I am wrong.

  2. The graph is not clear while plotting rf2 , when the code given in the template is used as it is. This code doesn’t also have ??? in it.However, to get a proper graph, I had to use head(10) to get a proper plot. I hope this is fine.Otherwise, I get a clumsy graph like this,

Try using matplotlib and increase figsize.

plt.figure(figsize=(15, 8)) # just an example, you can increase width or height as desired
1 Like

Try this:

plt.figure(figsize=(10, 100))
sns.barplot(data=rf2_importance_df, x='importance', y='feature');
2 Likes

Thank you, I will try the same @math-nights , @Sebgolos

1 Like