Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Easy way to run evaluation every n-th epoch? #5214

Answered by epwalsh
JohnGiorgi asked this question in Q&A
Discussion options

You must be logged in to vote

I have a similar feature request, where I'd like to skip validation for the first few epochs since I know the performance will be ready bad early on in training. Changing batches_per_epoch is not ideal for this use-case since that effects the frequency of checkpoints later in on training, which I'd like to avoid.

We could probably tackle both of these cases by adding a flag in the trainer _should_validate_this_epoch: bool = True or something, which could be modified by a TrainerCallback each epoch.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JohnGiorgi
Comment options

@JohnGiorgi
Comment options

@JohnGiorgi
Comment options

Answer selected by JohnGiorgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants