EvaluationLoop¶
- class pytorch_lightning.loops.dataloader.EvaluationLoop(verbose=True)[source]¶
Bases:
pytorch_lightning.loops.dataloader.dataloader_loop.DataLoaderLoop
Loops over all dataloaders for evaluation.
- on_advance_start(*args, **kwargs)[source]¶
Hook to be called each time before
advance
is called.Accepts all arguments passed to :attr`run`.
- Return type:
- 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.
- Return type: