-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathsgd_mnist.yaml
34 lines (33 loc) · 1.16 KB
/
sgd_mnist.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
!obj:pylearn2.scripts.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.basic.SimpleModel {
nvis: 784,
num_hid: 500,
num_class: 10
},
algorithm: !obj:pylearn2.training_algorithms.sgd.SGD {
batch_size: 100,
learning_rate: 1e-3,
set_batch_size: 1,
monitoring_dataset: *train, #{
#'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.basic.SamplingCost {
},
},
save_path: "${PYLEARN2_TRAIN_FILE_FULL_STEM}.pkl",
save_freq : 1
}