Skip to content
Discussion options

You must be logged in to vote

You could write a callback similar to early stopping which checks your metric for the target value by whatever epoch. if the metric isn't good enough, you can signal to the trainer to stop, like this: https://github.com/PyTorchLightning/pytorch-lightning/blob/490cc57809ebeba19003b4101393a8a058217c31/pytorch_lightning/callbacks/early_stopping.py#L194-L196

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@carmocca
Comment options

Answer selected by carmocca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment