commit 229e6053bce50820613f28875b84c28c5e287bbb
parent 1797f9e475272ed8f3851155698fe27d942aed0a
Author: Étienne Simon <esimon@esimon.eu>
Date: Wed, 18 Jun 2014 14:11:54 +0200
Invert call to train and normalize
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/model.py b/model.py
@@ -127,8 +127,8 @@ class Model(object):
while self.epoch < number_epoch:
for (relation, left_positive, right_positive, left_negative, right_negative) in self.dataset.training_minibatch(self.config['rng'], batch_size):
- self.normalise_function()
self.train_function(relation, left_positive, right_positive, left_negative, right_negative)
+ self.normalise_function()
self.epoch += 1
if self.epoch % validation_frequency == 0: