add callback for saving best metrics scores to wandb

This commit is contained in:
hobogalaxy committed 2021-01-09 23:09:18 +01:00
1 parent d24568e686
commit 0030c94b17
9 files changed
+103 -36

No files matched your search

@@ -7,11 +7,13 @@ model_checkpoint:
save_top_k: 1 # save k best lightning_models (determined by above metric)
save_last: True # additionaly always save model from last epoch
mode: "max" # can be "max" or "min"
filepath: "checkpoints/{epoch}"
early_stopping:
class: "pytorch_lightning.callbacks.EarlyStopping"
args:
monitor: "val_acc" # name of the logged metric which determines when model is improving
patience: 5 # how many epochs of not improving until training stops
patience: 100 # how many epochs of not improving until training stops
mode: "max" # can be "max" or "min"
min_delta: 0.0 # minimum change in the monitored metric needed to qualify as an improvement
@@ -0,0 +1,2 @@
# @package _group_