fix changelog (#1864)

* fix chlog

* test for #1729

* hist

* update

* Document use case of passing test dataloaders to Trainer.test() (#1992)

* Issue 1990 Doc patch.

* Codeblock directive.

* Update to reflect current state of pytorch-lightning

* Final grammar cleaning. I hope these commits are squashed.

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>

Co-authored-by: authman <uapatira@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
This commit is contained in:
Jirka Borovec
2020-05-31 00:48:05 -04:00
committed by GitHub
co-authored by Adrian Wälchli authman
parent d8dc0a7228
commit 9893681859
4 changed files with 41 additions and 16 deletions
+21 -2
View File
@@ -1,6 +1,6 @@
Test set
========
Lightning forces the user to run the test set separately to make sure it isn't evaluated by mistake
Lightning forces the user to run the test set separately to make sure it isn't evaluated by mistake.
Test after fit
@@ -15,6 +15,7 @@ To run the test set after training completes, use this method
# run test set
trainer.test()
Test pre-trained model
----------------------
To run the test set on a pre-trained model, use this method.
@@ -34,4 +35,22 @@ To run the test set on a pre-trained model, use this method.
trainer.test(model)
In this case, the options you pass to trainer will be used when
running the test set (ie: 16-bit, dp, ddp, etc...)
running the test set (ie: 16-bit, dp, ddp, etc...)
Test with additional data loaders
---------------------------------
You can still run inference on a test set even if the `test_dataloader` method hasn't been
defined within your :class:`~pytorch_lightning.core.LightningModule` instance. This would be the case when your test data
is not available at the time your model was declared.
.. code-block:: python
# setup your data loader
test = DataLoader(...)
# test (pass in the loader)
trainer.test(test_dataloaders=test)
You can either pass in a single dataloader or a list of them. This optional named
parameter can be used in conjunction with any of the above use cases.