Mercurial > pylearn
changeset 160:a910141fbe5b
Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 16:52:00 -0400 |
parents | cc8b032417db (diff) 28a988bd19c3 (current diff) |
children | 60e00cce3492 |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mlp.py Mon May 12 16:51:54 2008 -0400 +++ b/mlp.py Mon May 12 16:52:00 2008 -0400 @@ -89,7 +89,7 @@ self._regularization_term = self._L2_regularizer * (t.sum(self._W1*self._W1) + t.sum(self._W2*self._W2)) self._output_activations =self._b2+t.dot(t.tanh(self._b1+t.dot(self._input,self._W1.T)),self._W2.T) self._nll,self._output = crossentropy_softmax_1hot(self._output_activations,self._target_vector) - self._output_class, self._max_output = t.argmax(self._output,1) + self._output_class = t.argmax(self._output,1) self._class_error = t.neq(self._output_class,self._target_vector) self._minibatch_criterion = self._nll + self._regularization_term / t.shape(self._input)[0] OnlineGradientTLearner.__init__(self)