Hopefully I\'m reading this wrong but in the XGBoost library documentation, there is note of extracting the feature importance attributes using feature_importances_
feature_importances_
You can also use the built-in plot_importance function:
from xgboost import XGBClassifier, plot_importance fit = XGBClassifier().fit(X,Y) plot_importance(fit)