-
Notifications
You must be signed in to change notification settings - Fork 9
/
multiple.yaml
38 lines (32 loc) · 932 Bytes
/
multiple.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
_target_: src.modules.multiple_module.MultipleLitModule
# To avoiding copying of loss and metric names, during hydra initialization
# there is custom resolver which replaces __loss__ to loss.__class__.__name__
# and __metric__ to main_metric.__class__.__name__,
# for example: ${replace:"__metric__/valid"}
# Use quotes for defining internal value in ${replace:"..."} to avoid
# grammar problems with hydra config parser.
defaults:
- _self_
- network: classification_multiple.yaml
optimizer:
_target_: torch.optim.Adam
lr: 3.0e-4
weight_decay: 1.0e-5
scheduler:
scheduler:
_target_: torch.optim.lr_scheduler.ReduceLROnPlateau
mode: "max"
factor: 0.3
min_lr: 1.0e-9
patience: 10
verbose: True
extras:
monitor: ${replace:"__metric__/valid"}
interval: "epoch"
frequency: 1
logging:
on_step: False
on_epoch: True
sync_dist: True
prog_bar: True
heads: ["label1", "label2"]