Xgboost: AttributeError: 'DMatrix' object has no attribute 'feature_names'

Created on 9 Nov 2015  路  3Comments  路  Source: dmlc/xgboost

Why this error: AttributeError: 'DMatrix' object has no attribute 'feature_names', same with plot_importance
python 2.7
Ubuntu 14.04 LTS

Most helpful comment

How?

All 3 comments

Suppose you have somthing like:

import xgboost as xgb
gbdt = xgb.train(...)
  • feature_names is an attribute of gbdt
  • plot_importance is a function within xgb

@Far0n Thank you! I already solved it, but thanks again for your help.

How?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trivialfis picture trivialfis  路  3Comments

vkuznet picture vkuznet  路  3Comments

yananchen1989 picture yananchen1989  路  3Comments

frankzhangrui picture frankzhangrui  路  3Comments

FabHan picture FabHan  路  4Comments