diff --git a/spacy/training/loop.py b/spacy/training/loop.py index b63adb6c9..0d4414964 100644 --- a/spacy/training/loop.py +++ b/spacy/training/loop.py @@ -77,7 +77,7 @@ def train( log_step, finalize_logger = train_logger(nlp, stdout, stderr) try: for batch, info, is_best_checkpoint in training_step_iterator: - log_step(info if is_best_checkpoint else None) + log_step(info if is_best_checkpoint is not None else None) if is_best_checkpoint is not None and output_path is not None: with nlp.select_pipes(disable=frozen_components): update_meta(T, nlp, info)