-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.lua
69 lines (62 loc) · 1.33 KB
/
config.lua
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
59
60
61
62
63
64
65
66
67
68
69
local opt = {}
opt = {}
opt.threads = 8
opt.network_to_load = ""
opt.network_name = "exp"
opt.type = "vb"
opt.dataset = 'mnist'
opt.cuda = true
opt.batchSize = 1
opt.testBatchSize = 100
if opt.dataset == 'mnist' then
opt.trainSize = 100
opt.testSize = 1000
opt.classes = {'0','1','2','3','4','5','6','7','8','9' }
opt.geometry = {28,28}
opt.input_size = opt.geometry[1]*opt.geometry[2]
else
opt.trainSize = 90--100
opt.testSize = 9--1000
opt.classes = {'0','1'}
opt.testBatchSize = 1--49
opt.input_size = 2283
end
opt.plot = true
opt.B = 1000000--(opt.trainSize/opt.batchSize)--*100
opt.hidden = {10}
opt.S = 30
opt.testSamples = 30
--opt.quicktest = true
opt.log = true
--opt.normcheck = true
--opt.plotlc = true
--opt.viz = true
torch.manualSeed(3)
--opt.weight_init = 0.14--0.01
opt.mu_init = 0
opt.var_init = 0.001--torch.pow(0.075, 2)--torch.sqrt(2/opt.hidden[1])--0.01
--opt.msr_init = true
opt.pi_init = {
mu = 5,
var = 0.00001
}
-- optimisation params
opt.state = {
-- lambda = 1-1e-8,
learningRate = 0.001,
}
opt.varState = {
-- lambda = 1-1e-8,
learningRate = 0.05,
-- learningRateDecay = 0.01
}
opt.meanState = {
-- lambda = 1-1e-8,
learningRate = 0.0001,
-- learningRateDecay = 0.01
}
opt.piState = {
lambda = 1-1e-8,
learningRate = 0.00000001,
}
return opt