-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathagent_0.yaml
77 lines (76 loc) · 2.38 KB
/
agent_0.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
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
70
71
72
73
74
75
76
!obj:pylearn2.train.Train {
dataset: &train !obj:pylearn2.datasets.mnist.MNIST {
which_set: "train",
binarize: 1,
one_hot: 1,
start: 0,
stop: 50000
},
model: !obj:galatea.sample_prop.agent.AgentHive1 {
input_space: !obj:pylearn2.space.VectorSpace { dim: 784 },
layers: [
!obj:galatea.sample_prop.agent.LinearAgents {
layer_name: 'h0',
irange: .05,
#max_col_norm: 10.,
dim: 500
},
!obj:galatea.sample_prop.agent.LinearAgents {
layer_name: 'h1',
irange: .005,
#max_col_norm: 10.,
dim: 500
},
!obj:pylearn2.models.mlp.Softmax {
layer_name: 'y',
irange: 0.05,
n_classes: 10,
max_col_norm: 10
}
]
},
algorithm: !obj:pylearn2.training_algorithms.sgd.SGD {
batch_size: 100,
set_batch_size: 1,
learning_rate: .005,
init_momentum: .5,
monitoring_dataset:
{
'train' : *train,
'valid' : !obj:pylearn2.datasets.mnist.MNIST {
which_set: "train",
binarize: 1,
one_hot: 1,
start: 50000,
stop: 60000
}
},
cost : !obj:galatea.sample_prop.agent.AgentHive1Cost1 {
flip_prob: .01,
},
termination_criterion: !obj:pylearn2.termination_criteria.MonitorBased
{
channel_name: "valid_y_misclass",
N: 100,
prop_decrease: 0.
}
},
extensions: [
!obj:pylearn2.training_algorithms.sgd.MomentumAdjustor {
start: 0,
saturate: 200,
final_momentum: .9
},
#!obj:pylearn2.training_algorithms.sgd.LinearDecayOverEpoch {
# start: 1,
# saturate: 527,
# decay_factor: 0.006308
#},
!obj:pylearn2.train_extensions.best_params.MonitorBasedSaveBest {
channel_name: "valid_y_misclass",
save_path: "${PYLEARN2_TRAIN_FILE_FULL_STEM}_best.pkl"
},
],
save_path: "${PYLEARN2_TRAIN_FILE_FULL_STEM}.pkl",
save_freq : 1
}