forked from GillianGrayson/dnam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.yaml
17 lines (16 loc) · 801 Bytes
/
default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
model_checkpoint:
_target_: pytorch_lightning.callbacks.ModelCheckpoint
monitor: "val/loss" # name of the logged metric which determines when model is improving
mode: "min" # can be "max" or "min"
save_top_k: 1 # save k best models (determined by above metric)
save_last: False # additionaly always save model from last epoch
verbose: False
dirpath: "checkpoints/"
filename: "{epoch:03d}"
auto_insert_metric_name: False
early_stopping:
_target_: pytorch_lightning.callbacks.EarlyStopping
monitor: "val/loss" # name of the logged metric which determines when model is improving
mode: "min" # can be "max" or "min"
patience: 10 # how many epochs of not improving until training stops
min_delta: 0 # minimum change in the monitored metric needed to qualify as an improvement