Xgboost: AttributeError: 'DMatrix'-Objekt hat kein Attribut 'feature_names'

Erstellt am 9. Nov. 2015  ·  3Kommentare  ·  Quelle: dmlc/xgboost

Warum dieser Fehler: AttributeError: 'DMatrix' object has no attribute 'feature_names' , genauso wie plot_importance
Python 2.7
Ubuntu 14.04 LTS

Hilfreichster Kommentar

Wie?

Alle 3 Kommentare

Angenommen, Sie haben so etwas wie:

import xgboost as xgb
gbdt = xgb.train(...)
  • feature_names ist ein Attribut von gbdt
  • plot_importance ist eine Funktion innerhalb von xgb

@Far0n Danke! Ich habe es schon gelöst, aber danke nochmal für deine Hilfe.

Wie?

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

ivannz picture ivannz  ·  3Kommentare

nicoJiang picture nicoJiang  ·  4Kommentare

tqchen picture tqchen  ·  4Kommentare

uasthana15 picture uasthana15  ·  4Kommentare

frankzhangrui picture frankzhangrui  ·  3Kommentare