Closed chialunwu closed 9 years ago
142 if self.l2_reg is not None: 143 for i in xrange(self.n_layers): 144 W = self.layers[i].W 145 self.finetune_cost += self.l2_reg * T.sqr(W).sum()
'self.n_layers' seems should be 'self.hidden_layers_number' Because the class has no 'n_layers' variable.
Thanks for pointing this out. Typo corrected.
142 if self.l2_reg is not None: 143 for i in xrange(self.n_layers): 144 W = self.layers[i].W 145 self.finetune_cost += self.l2_reg * T.sqr(W).sum()
'self.n_layers' seems should be 'self.hidden_layers_number' Because the class has no 'n_layers' variable.