Feature Importance with XGBClassifier

后端 未结 9 1185
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 10:03

Hopefully I\'m reading this wrong but in the XGBoost library documentation, there is note of extracting the feature importance attributes using feature_importances_

9条回答
  •  被撕碎了的回忆
    2020-12-14 11:02

    You can also use the built-in plot_importance function:

    from xgboost import XGBClassifier, plot_importance
    fit = XGBClassifier().fit(X,Y)
    plot_importance(fit)
    

提交回复
热议问题