Xgboost: AttributeError: 'DMatrix' 对象没有属性 'feature_names'

创建于 2015-11-09  ·  3评论  ·  资料来源: dmlc/xgboost

为什么会出现此错误: AttributeError: 'DMatrix' object has no attribute 'feature_names' ,与plot_importance
蟒蛇 2.7
Ubuntu 14.04 LTS

最有用的评论

如何?

所有3条评论

假设你有类似的东西:

import xgboost as xgb
gbdt = xgb.train(...)
  • feature_namesgbdt的一个属性
  • plot_importancexgb 中的一个函数

@Far0n谢谢! 我已经解决了,但再次感谢您的帮助。

如何?

此页面是否有帮助?
0 / 5 - 0 等级