[Migrated from https://github.com/dmlc/xgboost/issues/3549]
Working with
Mac OS X 10.11.6
Conda 4.5.9
Python environment 3.6.3
pip installed XGBoost 0.72.1
all of a sudden I get this error:
‘XGBClassifier’ object has no attribute ‘DMatrix’
in this line of code:
dtrain = xgb.DMatrix(X_train, y_train, feature_names=columns)
How can I fix this?
(Btw: Thanks for making xgboost available. Very much appreciated!)