EvaluationLoop
- class pytorch_lightning.loops.dataloader.EvaluationLoop[source]
Bases:
abc.ABC
,Generic
[pytorch_lightning.loops.base.T
]Loops over all dataloaders for evaluation.
- connect(epoch_loop)[source]
Connect the evaluation epoch loop with this loop.
- on_run_end()[source]
Runs the
_on_evaluation_epoch_end
hook.
- on_run_start(*args, **kwargs)[source]
Runs the
_on_evaluation_model_eval
,_on_evaluation_start
and_on_evaluation_epoch_start
hooks.- Return type
- on_skip()[source]
The function to run when
run()
should be skipped, determined by the condition inskip
.- Return type
- Returns
the default output value of
on_run_end()
- property dataloaders: Sequence[torch.utils.data.dataloader.DataLoader]
Returns the validation or test dataloaders.