Merge pull request #323 from jseabold/fix-errors
BUG: XGBError -> XGBoostError
This commit is contained in:
commit
01175a415a
@ -899,7 +899,7 @@ class XGBModel(XGBModelBase):
|
||||
nthread=-1, gamma=0, min_child_weight=1, max_delta_step=0, subsample=1, colsample_bytree=1,
|
||||
base_score=0.5, seed=0):
|
||||
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.learning_rate = learning_rate
|
||||
self.n_estimators = n_estimators
|
||||
@ -937,7 +937,7 @@ class XGBModel(XGBModelBase):
|
||||
booster : a xgboost booster of underlying model
|
||||
"""
|
||||
if self._Booster is None:
|
||||
raise XGBError('need to call fit beforehand')
|
||||
raise XGBoostError('need to call fit beforehand')
|
||||
return self._Booster
|
||||
|
||||
def get_xgb_params(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user