yajiemiao / pdnn

PDNN: A Python Toolkit for Deep Learning. http://www.cs.cmu.edu/~ymiao/pdnntk.html
Apache License 2.0
225 stars 105 forks source link

Typo in dropout_nnet.py #17

Closed chialunwu closed 9 years ago

chialunwu commented 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.

ghost commented 9 years ago

Thanks for pointing this out. Typo corrected.