📅  最后修改于: 2022-03-11 14:45:14.069000             🧑  作者: Mango
#To be done on a tained model
#model here is a stand in for your named model
pd.DataFrame(
{"feature": X.columns, "importance": model.feature_importances_}
).sort_values("importance", ascending=False)