Question : feature importance plot
Answered by : hurt-horse-i10y9ovttxtu
sorted_idx = rf.feature_importances_.argsort()
plt.barh(boston.feature_names[sorted_idx], rf.feature_importances_[sorted_idx])
plt.xlabel("Random Forest Feature Importance")
Source : https://mljar.com/blog/feature-importance-in-random-forest/ | Last Update : Sun, 16 May 21