I am trying to plot feature importances for a random forest model and map each feature importance back to the original coefficient. I\'ve managed to create a plot that shows the
It is simple, I plotted it like this.
feat_importances = pd.Series(extraTree.feature_importances_, index=X.columns) feat_importances.nlargest(15).plot(kind='barh') plt.title("Top 15 important features") plt.show()