# HG changeset patch # User Olivier Delalleau # Date 1243000990 14400 # Node ID f8bf9533f6b34a330d6f70d5c6de11eee2009b6f # Parent 521c04f8d2b349edbb964d825662a9275b9c3f83 Renamed Alloc into alloc diff -r 521c04f8d2b3 -r f8bf9533f6b3 pylearn/algorithms/sandbox/DAA_inputs_groups.py --- 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