在使用plot_importance()画图的时候,只需要在后面加上一个接口即可,在图中显示特征名字
参考资料:https://stackoverflow.com/questions/46943314/xgboost-plot-importance-doesnt-show-feature-names
一句话解决:Xgboost的plot_importance绘图时出现的f0、f1、f2、f3、f4、f5等改为对应特征的字段名
最新推荐文章于 2023-02-06 23:45:38 发布
关键词由CSDN通过智能技术生成