Mercurial > pylearn
changeset 707:f8bf9533f6b3
Renamed Alloc into alloc
author | Olivier Delalleau <delallea@iro> |
---|---|
date | Fri, 22 May 2009 10:03:10 -0400 |
parents | 521c04f8d2b3 |
children | 53a247cfee84 |
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 12:54:41 2009 -0400 +++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py Fri May 22 10:03:10 2009 -0400 @@ -478,7 +478,7 @@ self.representation[-1] = theano.Method(self.inputs[-2],self.daaig[-1].argmax_standalone) 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 @@ -487,8 +487,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