You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often within one training epoch to check the validation set. Can specify as float or int.
1716
+
1717
+
pass a float in the range [0.0, 1.0] to check after a fraction of the training epoch.
1718
+
pass an int to check after a fixed number of training batches. An int value can only be higher than the number of training batches when check_val_every_n_epoch=None, which validates after every N training batches across epochs or iteration-based training.
1719
+
.. testcode::
1720
+
1721
+
# default used by the Trainer
1722
+
trainer = Trainer(val_check_interval=1.0)
1723
+
1724
+
# check validation set 4 times during a training epoch
1725
+
trainer = Trainer(val_check_interval=0.25)
1726
+
1727
+
# check validation set every 1000 training batches in the current epoch
1728
+
trainer = Trainer(val_check_interval=1000)
1729
+
1730
+
# check validation set every 1000 training batches across complete epochs or during iteration-based training
1731
+
# use this when using iterableDataset and your dataset has no length
0 commit comments