Answers for "feature importance plot"

0

feature importance plot

sorted_idx = rf.feature_importances_.argsort()
plt.barh(boston.feature_names[sorted_idx], rf.feature_importances_[sorted_idx])
plt.xlabel("Random Forest Feature Importance")
Posted by: Guest on May-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language