From 84ae197dd6d229b1ef34a205d1103f87623c0db6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 4 Oct 2020 14:16:53 +0200 Subject: [PATCH] Fix logger --- spacy/training/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)