Skip to content

Commit

Permalink
Fix handling of print period in evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Shvets committed Dec 14, 2020
1 parent c31e3ef commit b78b567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/callback.py
Expand Up @@ -621,7 +621,7 @@ def after_iteration(self, model, epoch, evals_log):
msg += self._fmt_metric(data, metric_name, score, stdv)
msg += '\n'

if (epoch % self.period) != 0 or self.period == 1:
if (epoch % self.period) == 0 or self.period == 1:
rabit.tracker_print(msg)
self._latest = None
else:
Expand Down

0 comments on commit b78b567

Please sign in to comment.