AttributeError: o módulo 'xgboost' não tem atributo 'XGBRegressor'
Estou tentando executar o xgboost usando spyder e python, mas continuo recebendo este erro:
AttributeError: o módulo 'xgboost' não tem atributo 'XGBRegressor'
Aqui está o código:
import xgboost as xgb
xgb.XGBRegressor(max_depth=3, learning_rate=0.1, n_estimators=100, silent=True,
objective='reg:linear', gamma=0, min_child_weight=1,
max_delta_step=0, subsample=1, colsample_bytree=1,
seed=0, missing=None)
O erro é
Traceback (most recent call last):
File "<ipython-input-33-d257a9a2a5d8>", line 1, in <module>
xgb.XGBRegressor(max_depth=3, learning_rate=0.1, n_estimators=100, silent=True,
AttributeError: module 'xgboost' has no attribute 'XGBRegressor'
Eu tenho o Python 3.5.2 :: Anaconda 4.2.0 (x86_64)
Como eu resolvo isso?