diff mlp.py @ 129:4c2280edcaf5

Fixed typos in learner.py
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Wed, 07 May 2008 21:22:56 -0400
parents 4efe6d36c061
children f6505ec32dc3
line wrap: on
line diff
--- a/mlp.py	Wed May 07 20:51:24 2008 -0400
+++ b/mlp.py	Wed May 07 21:22:56 2008 -0400
@@ -7,7 +7,7 @@
 # the use of theano
 
 
-class OneHiddenLayerNNetClassifier(MinibatchUpdatesTLearner):
+class OneHiddenLayerNNetClassifier(OnlineGradientTLearner):
     """
     Implement a straightforward classicial feedforward
     one-hidden-layer neural net, with L2 regularization.
@@ -83,7 +83,7 @@
         self._output_class = t.argmax(self._output,1)
         self._class_error = self._output_class != self._target
         self._minibatch_criterion = self._nll + self._regularization_term / t.shape(self._input)[0]
-        MinibatchUpdatesTLearner.__init__(self)
+        OnlineGradientTLearner.__init__(self)
             
     def attributeNames(self):
         return ["parameters","b1","W2","b2","W2", "L2_regularizer","regularization_term"]