为什么会出现此错误: AttributeError: 'DMatrix' object has no attribute 'feature_names'
,与plot_importance
蟒蛇 2.7
Ubuntu 14.04 LTS
假设你有类似的东西:
import xgboost as xgb
gbdt = xgb.train(...)
feature_names
是gbdt的一个属性plot_importance
是xgb 中的一个函数@Far0n谢谢! 我已经解决了,但再次感谢您的帮助。
如何?
最有用的评论
如何?