Fix period in evaluation monitor. (#6441)
This commit is contained in:
@@ -621,7 +621,7 @@ class EvaluationMonitor(TrainingCallback):
|
||||
msg += self._fmt_metric(data, metric_name, score, stdv)
|
||||
msg += '\n'
|
||||
|
||||
if (epoch % self.period) != 0:
|
||||
if (epoch % self.period) != 0 or self.period == 1:
|
||||
rabit.tracker_print(msg)
|
||||
self._latest = None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user