BUG: XGBError -> XGBoostError

This commit is contained in:
Skipper Seabold 2015-05-18 09:09:22 -05:00
parent 91a5390929
commit a17cb2339e

View File

@ -899,7 +899,7 @@ class XGBModel(XGBModelBase):
nthread=-1, gamma=0, min_child_weight=1, max_delta_step=0, subsample=1, colsample_bytree=1, nthread=-1, gamma=0, min_child_weight=1, max_delta_step=0, subsample=1, colsample_bytree=1,
base_score=0.5, seed=0): base_score=0.5, seed=0):
if not SKLEARN_INSTALLED: if not SKLEARN_INSTALLED:
raise XGBError('sklearn needs to be installed in order to use this module') raise XGBoostError('sklearn needs to be installed in order to use this module')
self.max_depth = max_depth self.max_depth = max_depth
self.learning_rate = learning_rate self.learning_rate = learning_rate
self.n_estimators = n_estimators self.n_estimators = n_estimators
@ -937,7 +937,7 @@ class XGBModel(XGBModelBase):
booster : a xgboost booster of underlying model booster : a xgboost booster of underlying model
""" """
if self._Booster is None: if self._Booster is None:
raise XGBError('need to call fit beforehand') raise XGBoostError('need to call fit beforehand')
return self._Booster return self._Booster
def get_xgb_params(self): def get_xgb_params(self):