Skip to content

Commit 3fa2d05

Browse files
committed
Update test
1 parent 1fb4e92 commit 3fa2d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/callbacks/test_early_stopping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,13 @@ def validation_epoch_end(self, outputs):
334334
# Compute min_epochs latest step
335335
by_min_epochs = min_epochs * limit_train_batches
336336

337-
# Make sure the trainer stops for the max of all minimun requirements
337+
# Make sure the trainer stops for the max of all minimum requirements
338338
assert trainer.global_step == max(min_steps, by_early_stopping, by_min_epochs), \
339339
(trainer.global_step, max(min_steps, by_early_stopping, by_min_epochs), step_freeze, min_steps, min_epochs)
340340

341341
_logger.disabled = False
342342

343343

344344
def test_early_stopping_mode_options():
345-
with pytest.raises(MisconfigurationException, match="`mode` can be auto, .* got unknown_option"):
345+
with pytest.raises(MisconfigurationException, match="`mode` can be .* got unknown_option"):
346346
EarlyStopping(mode="unknown_option")

0 commit comments

Comments
 (0)