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.
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,
matplotlib and increase
plt.figure(figsize=(15, 8)) # just an example, you can increase width or height as desired
plt.figure(figsize=(10, 100)) sns.barplot(data=rf2_importance_df, x='importance', y='feature');