-
Notifications
You must be signed in to change notification settings - Fork 3
/
params.py
58 lines (54 loc) · 1.24 KB
/
params.py
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
way5_params = {
'n_way': 5,
'k_shots': 1,
'n_test': 1,
# inner loop parameters
'train_shots': 10,
'inner_lr': 0.001,
'inner_batchsize': 10,
'inner_iterations': 5,
# outter loop parameters
'outer_lr': 1.0,
'outer_iterations': 100000,
'meta_batchsize': 5,
'metastep_final': 0,
# evaluation params
'eval_inner_iterations': 50,
'eval_inner_batch': 5,
# other...
'validation_rate': 10
}
# python -u run_omniglot.py \
# --shots 1 \
# --inner-batch 10 \
# --inner-iters 5 \
# --meta-step 1 \
# --meta-batch 5 \
# --meta-iters 100000 \
# --eval-batch 5 \
# --eval-iters 50 \
# --learning-rate 0.001 \
# --meta-step-final 0 \
# --train-shots 10 \
# --checkpoint ckpt_o15t \
# --transductive
way20_params = {
'n_way': 20,
'k_shots': 1,
'n_test': 1,
# inner loop parameters
'train_shots': 10,
'inner_lr': 0.0005,
'inner_batchsize': 20,
'inner_iterations': 10,
# outter loop parameters
'outer_lr': 1.0,
'outer_iterations': 200000,
'meta_batchsize': 5,
'metastep_final': 0,
# evaluation params
'eval_inner_iterations': 50,
'eval_inner_batch': 10,
# other...
'validation_rate': 10
}