Mercurial > ift6266
comparison deep/stacked_dae/nist_sda.py @ 268:b077d9e97a3b
Légères corrections à config.py.example et ajusté nist_sda pour utiliser la nouvelle 'interface' des datasets (nist_all()).
author | fsavard |
---|---|
date | Fri, 19 Mar 2010 11:31:57 -0400 |
parents | 798d1344e6a2 |
children | 7b4507295eba 43afd29f3dbd |
comparison
equal
deleted
inserted
replaced
267:798d1344e6a2 | 268:b077d9e97a3b |
---|---|
59 | 59 |
60 series = create_series(state.num_hidden_layers) | 60 series = create_series(state.num_hidden_layers) |
61 | 61 |
62 print "Creating optimizer with state, ", state | 62 print "Creating optimizer with state, ", state |
63 | 63 |
64 optimizer = SdaSgdOptimizer(dataset=datasets.nist_all, | 64 optimizer = SdaSgdOptimizer(dataset=datasets.nist_all(), |
65 hyperparameters=state, \ | 65 hyperparameters=state, \ |
66 n_ins=n_ins, n_outs=n_outs,\ | 66 n_ins=n_ins, n_outs=n_outs,\ |
67 examples_per_epoch=examples_per_epoch, \ | 67 examples_per_epoch=examples_per_epoch, \ |
68 series=series, | 68 series=series, |
69 max_minibatches=rtt) | 69 max_minibatches=rtt) |
70 | 70 |
71 optimizer.pretrain(datasets.nist_all) | 71 optimizer.pretrain(datasets.nist_all()) |
72 channel.save() | 72 channel.save() |
73 | 73 |
74 optimizer.finetune(datasets.nist_all) | 74 optimizer.finetune(datasets.nist_all()) |
75 channel.save() | 75 channel.save() |
76 | 76 |
77 return channel.COMPLETE | 77 return channel.COMPLETE |
78 | 78 |
79 # These Series objects are used to save various statistics | 79 # These Series objects are used to save various statistics |