📅  最后修改于: 2022-03-11 14:45:17.793000             🧑  作者: Mango
sorted_idx = rf.feature_importances_.argsort()
plt.barh(boston.feature_names[sorted_idx], rf.feature_importances_[sorted_idx])
plt.xlabel("Random Forest Feature Importance")