Skip to content

Commit cecad9f

Browse files
balloonanimalmergify[bot]
andauthoredSep 1, 2020
distinguished between overfit_batches examples (Lightning-AI#3298)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent b22a65e commit cecad9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs/source/debugging.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ argument of :class:`~pytorch_lightning.trainer.trainer.Trainer`)
6666
# use only 1% of training data (and use the same training dataloader (with shuffle off) in val and test)
6767
trainer = Trainer(overfit_batches=0.01)
6868

69-
# or overfit a number of batches
70-
trainer = Trainer(overfit_batches=0.01)
69+
# similar, but with a fixed 10 batches no matter the size of the dataset
70+
trainer = Trainer(overfit_batches=10)
7171

7272
With this flag, the train, val, and test sets will all be the same train set. We will also replace the sampler
7373
in the training set to turn off shuffle for you.

0 commit comments

Comments
 (0)
Failed to load comments.