You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
<top of callstack>
err_profile = xgb.cv(dict(param), dtrain, n_trees, nfold=nfolds, folds=folds, seed=42,
File "<venv-dir>/lib/python3.8/site-packages/xgboost/training.py", line 517, in cv
should_break = callbacks.after_iteration(booster, i, dtrain, None)
File "<venv-dir>/lib/python3.8/site-packages/xgboost/callback.py", line 428, in after_iteration
ret = any(c.after_iteration(model, epoch, self.history)
File "<venv-dir>/lib/python3.8/site-packages/xgboost/callback.py", line 428, in <genexpr>
ret = any(c.after_iteration(model, epoch, self.history)
File "<venv-dir>/lib/python3.8/site-packages/xgboost/callback.py", line 458, in after_iteration
model.set_param('learning_rate', self.learning_rates(epoch))
AttributeError: '_PackedBooster' object has no attribute 'set_param'
The text was updated successfully, but these errors were encountered:
Using the new style callback from xgboost.cv() throws an exception when attempting to change the learning rate. This is with xgboost 1.3.3.
Cut down version of the code:
throws an exception:
The text was updated successfully, but these errors were encountered: