develop more generic version of template, switch to using hydra initializers

This commit is contained in:
hobogalaxy committed 2021-01-19 02:23:13 +01:00
1 parent e93283d890
commit 7fe01e22d3
26 files changed
+329 -512

No files matched your search

@@ -1,17 +1,15 @@
model_checkpoint:
class: pytorch_lightning.callbacks.ModelCheckpoint
args:
monitor: "val_acc" # name of the logged metric which determines when model is improving
save_top_k: 2 # save k best 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}"
_target_: pytorch_lightning.callbacks.ModelCheckpoint
monitor: "val_acc" # name of the logged metric which determines when model is improving
save_top_k: 2 # save k best 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: 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
_target_: pytorch_lightning.callbacks.EarlyStopping
monitor: "val_acc" # name of the logged metric which determines when model is improving
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