📜  pandas 模型中最有价值的特性 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.069000             🧑  作者: Mango

代码示例1
#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)