forked from Mephisto405/Learning-Loss-for-Active-Learning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
46 lines (36 loc) · 743 Bytes
/
config.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
''' Configuration File.
'''
##
# Learning Loss for Active Learning
NUM_TRAIN = 50000 # N
NUM_VAL = 50000 - NUM_TRAIN
BATCH = 128 # B
SUBSET = 10000 # M
ADDENDUM = 1000 # K
MARGIN = 1.0 # xi
WEIGHT = 1.0 # lambda
TRIALS = 3
CYCLES = 10
EPOCH = 200
LR = 0.1
MILESTONES = [160]
EPOCHL = 120 # After 120 epochs, stop the gradient from the loss prediction module propagated to the target model
MOMENTUM = 0.9
WDECAY = 5e-4
''' CIFAR-10 | ResNet-18 | 93.6%
NUM_TRAIN = 50000 # N
NUM_VAL = 50000 - NUM_TRAIN
BATCH = 128 # B
SUBSET = NUM_TRAIN # M
ADDENDUM = NUM_TRAIN # K
MARGIN = 1.0 # xi
WEIGHT = 0.0 # lambda
TRIALS = 1
CYCLES = 1
EPOCH = 50
LR = 0.1
MILESTONES = [25, 35]
EPOCHL = 40
MOMENTUM = 0.9
WDECAY = 5e-4
'''