diff --git a/404.html b/404.html index 3e6644c1..1af5cb9f 100644 --- a/404.html +++ b/404.html @@ -362,6 +362,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/LightningModule/RequiredTrainerInterface/index.html b/LightningModule/RequiredTrainerInterface/index.html index 22a8f89c..ebe37751 100644 --- a/LightningModule/RequiredTrainerInterface/index.html +++ b/LightningModule/RequiredTrainerInterface/index.html @@ -634,6 +634,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/LightningModule/methods/index.html b/LightningModule/methods/index.html index 153b9757..cb5f8c28 100644 --- a/LightningModule/methods/index.html +++ b/LightningModule/methods/index.html @@ -416,6 +416,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/LightningModule/properties/index.html b/LightningModule/properties/index.html index ab77e2f1..eb65848c 100644 --- a/LightningModule/properties/index.html +++ b/LightningModule/properties/index.html @@ -464,6 +464,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/Trainer/Checkpointing/index.html b/Trainer/Checkpointing/index.html index 4517c2d6..d544ca53 100644 --- a/Trainer/Checkpointing/index.html +++ b/Trainer/Checkpointing/index.html @@ -409,6 +409,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/Trainer/Distributed training/index.html b/Trainer/Distributed training/index.html index a645a599..bc89d26f 100644 --- a/Trainer/Distributed training/index.html +++ b/Trainer/Distributed training/index.html @@ -451,6 +451,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/Trainer/Logging/index.html b/Trainer/Logging/index.html index 77108ebc..ed569a75 100644 --- a/Trainer/Logging/index.html +++ b/Trainer/Logging/index.html @@ -450,6 +450,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop diff --git a/Trainer/SLURM Managed Cluster/index.html b/Trainer/SLURM Managed Cluster/index.html index d37fa013..09f7c61d 100644 --- a/Trainer/SLURM Managed Cluster/index.html +++ b/Trainer/SLURM Managed Cluster/index.html @@ -409,6 +409,18 @@ +
  • + + Testing loop + +
  • + + + + + + +
  • Training Loop @@ -725,13 +737,13 @@ With this feature lightning will:

    -
    + Skip to content + + + +
    + +
    + +
    + + + + +
    +
    + + +
    +
    +
    + +
    +
    +
    + + +
    +
    +
    + + +
    +
    +
    + + +
    +
    + + + + + +

    Testing loop

    + +

    To ensure you don't accidentally use test data to guide training decisions Lightning makes running the test set deliberate.

    +
    +

    test

    +

    You have two options to run the test set. +First case is where you test right after a full training routine.

    +
    1
    +2
    +3
    +4
    +5
    # run full training
    +trainer.fit(model)
    +
    +# run test set
    +trainer.test()
    +
    +
    + +

    Second case is where you load a model and run the test set

    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    model = MyLightningModule.load_from_metrics(
    +    weights_path='/path/to/pytorch_checkpoint.ckpt',
    +    tags_csv='/path/to/test_tube/experiment/version/meta_tags.csv',
    +    on_gpu=True,
    +    map_location=None
    +)
    +
    +# init trainer with whatever options
    +trainer = Trainer(...)
    +
    +# test (pass in the model)
    +trainer.test(model)
    +
    +
    + +

    In this second case, the options you pass to trainer will be used when running the test set (ie: 16-bit, dp, ddp, etc...)

    + + + + + + + + + +
    +
    +
    +
    + + + + +
    + + + + + + + + \ No newline at end of file diff --git a/Trainer/Training Loop/index.html b/Trainer/Training Loop/index.html index 46227126..e85113f2 100644 --- a/Trainer/Training Loop/index.html +++ b/Trainer/Training Loop/index.html @@ -367,6 +367,18 @@ + +
  • + + Testing loop + +
  • + + + + + + @@ -697,7 +709,7 @@ Specifically, this will