transform

old TransE-like models
git clone https://esimon.eu/repos/transform.git
Log | Files | Refs | README

commit 682d2a64915e11eeaac999306c17f9d12f9fb22a
parent 434233eacd7b074f6232a38caff0537941073db3
Author: Étienne Simon <esimon@esimon.eu>
Date:   Wed, 23 Apr 2014 12:58:43 +0200

Normalise before training

Diffstat:
Mmodel.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/model.py b/model.py @@ -135,8 +135,8 @@ class Model(object): self.validate(epoch+1) for (relation, left_positive, right_positive, left_negative, right_negative) in self.dataset.training_minibatch(batch_size): - self.train_function(relation, left_positive, right_positive, left_negative, right_negative) self.normalise_function() + self.train_function(relation, left_positive, right_positive, left_negative, right_negative) def error(self, name): """ Compute the mean rank and top 10 on a given data. """