Mercurial > pylearn
changeset 708:53a247cfee84
Merged
author | Olivier Delalleau <delallea@iro> |
---|---|
date | Fri, 22 May 2009 10:03:29 -0400 |
parents | f8bf9533f6b3 (diff) 2b54c38e2c60 (current diff) |
children | 55f77c7c3075 |
files | pylearn/algorithms/sandbox/DAA_inputs_groups.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pylearn/algorithms/sandbox/DAA_inputs_groups.py Thu May 21 19:52:46 2009 -0400 +++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py Fri May 22 10:03:29 2009 -0400 @@ -522,7 +522,7 @@ theano.Method(self.inputs[-1],self.totalgradients[-1][0]+self.totalgradients[-1][1]) def _instance_initialize(self,inst,unsup_lr = 0.1, sup_lr = 0.01, reg_coef = 0, - noise_level = 0 , noise_level_group = 0, seed = 1, Alloc = True,**init): + noise_level = 0 , noise_level_group = 0, seed = 1, alloc = True,**init): super(StackedDAAig, self)._instance_initialize(inst, **init) inst.unsup_lr = unsup_lr @@ -531,8 +531,8 @@ for i in range(self.depth): print '\tLayer = ', i+1 inst.daaig[i].initialize(reg_coef = reg_coef, noise_level = noise_level,\ - noise_level_group = noise_level_group, seed = seed, Alloc = Alloc) + noise_level_group = noise_level_group, seed = seed, alloc = alloc) print '\tLayer supervised' inst.daaig[-1].initialize() inst.daaig[-1].l1 = 0 - inst.daaig[-1].l2 = reg_coef #only l2 norm for regularisation to be consitent with the unsup regularisation \ No newline at end of file + inst.daaig[-1].l2 = reg_coef #only l2 norm for regularisation to be consitent with the unsup regularisation