transform

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

commit 1bdc4cbb2ca9a890a3a9566d3e011f0827043b2c
parent b4f7c88d434c6827c9505b734148d890e1b7e772
Author: Étienne Simon <esimon@esimon.eu>
Date:   Fri, 18 Apr 2014 15:22:54 +0200

Fix normaliser

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

diff --git a/embeddings.py b/embeddings.py @@ -50,4 +50,4 @@ class Embeddings(object): def normalise_updates(self): """ Normalise the embeddings' L2 norm to 1. """ - return [(self.E, self.E / T.sqrt(T.sum(self.E **2, axis=1)] + return [(self.E, self.E / T.sqrt(T.sum(self.E **2, axis=1)))]