classy.pl_callbacks.prediction
Classes
PredictionCallback
PredictionPLCallback
Abstract base class used to build new callbacks.
Subclass this class and override any of the relevant hooks
__init__
def __init__(
path: str,
prediction_dataset_conf: omegaconf.dictconfig.DictConfig,
on_result: Dict[str, omegaconf.dictconfig.DictConfig],
settings: List[Dict[str, Any]],
)
path: str,
prediction_dataset_conf: omegaconf.dictconfig.DictConfig,
on_result: Dict[str, omegaconf.dictconfig.DictConfig],
settings: List[Dict[str, Any]],
)
on_validation_epoch_start
def on_validation_epoch_start(
self,
trainer: pytorch_lightning.trainer.trainer.Trainer,
model: ClassyPLModule,
) ‑> None
self,
trainer: pytorch_lightning.trainer.trainer.Trainer,
model: ClassyPLModule,
) ‑> None
Called when the val epoch begins.