Skip to content

Commit

Permalink
Fix legacy callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Oct 30, 2020
1 parent c9ddda0 commit 40b5562
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python-package/xgboost/callback.py
Expand Up @@ -692,9 +692,11 @@ def __init__(self, callbacks, start_iteration, end_iteration,

def before_training(self, model):
'''Nothing to do for legacy callbacks'''
return model

def after_training(self, model):
'''Nothing to do for legacy callbacks'''
return model

def before_iteration(self, model, epoch, dtrain, evals):
'''Called before each iteration.'''
Expand Down

0 comments on commit 40b5562

Please sign in to comment.