Skip to content
Discussion options

You must be logged in to vote
f1, acc = self.share_val_step(batch)
metrics = {'val_f1': f1, 'val_acc': acc}
self.log_dict(metrics, prog_bar=True, logger=True, on_epoch=True)

here you are using on_epoch=True, which means the metric will be aggregated across the validation set and will be used to monitor the checkpoints if you set ModelCheckpoint(..., monitor='val_acc').

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Struggle-Forever
Comment options

Answer selected by akihironitta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging Related to the `LoggerConnector` and `log()` trainer: validate
2 participants