You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 3, every_n_train_steps is specified to save model weights for each n train steps. I usually pick the model when validation AA prec and pep prec are both the best.
While in version 4, Casanovo only saves the top k models.
If calculate_precision is set as False as recommended, does Casanovo save the models based on lowest training loss or validation loss? And any previous worse models will be removed from the folder?
Can I train the model without specifying any validation set?
Is it still possible to set calculate_precision as True, and save the model when AA prec and pep prec are the best as in version 3?
Sorry for the dumb questions.
The text was updated successfully, but these errors were encountered:
Yes. We have observed a strong correlation between the loss and the AA/peptide precision, so the former can be used as a proxy to select the best model. Hence, during training you can skip calculating the precision to speed up the validation steps, because running beam search during inference is expensive. Note that even when AA/peptide precision is calculated, the top-k models are always determined based on the validation loss. The ultimate metric we're interested in is of course still AA/peptide precision, so it is recommended to calculate this afterwards for the final model.
We use the ModelCheckpoint from PyTorch Lightning, so for specific implementation details, check out their documentation. For example, set save_top_k=-1 to retain all model checkpoints.
No, a validation set is required.
So this is basically what is being done, except the validation loss is used to determine the best model. Basically see point (1).
We want to make saving models more flexible (#313, #291), but this will take a bit more time.
In version 3, every_n_train_steps is specified to save model weights for each n train steps. I usually pick the model when validation AA prec and pep prec are both the best.
While in version 4, Casanovo only saves the top k models.
Sorry for the dumb questions.
The text was updated successfully, but these errors were encountered: