I\'m using xgboost to build a model, and try to find the importance of each feature using get_fscore(), but it returns {}
get_fscore()
{}
and my train code
In case you are using XGBRegressor, try with: model.get_booster().get_score().
model.get_booster().get_score()
That returns the results that you can directly visualize through plot_importance command
plot_importance