transform

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

commit 9987f603e99cbd1093ed323e202e992a13935872
parent 6afcffe88a34e26b777eca212db143c8d2ac10a0
Author: Étienne Simon <esimon@esimon.eu>
Date:   Fri, 20 Jun 2014 11:28:21 +0200

Fix elif typo in meta-model training

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

diff --git a/meta_model.py b/meta_model.py @@ -65,7 +65,7 @@ class Meta_model(object): """ Train the model. """ if len(self.models)==1: self.models[0].train() - else if 'threaded' in self.config and self.config['threaded']: + elif 'threaded' in self.config and self.config['threaded']: threads = [ threading.Thread(target=model.train, args=()) for model in self.models ] for (model, thread) in zip(self.models, threads): log('# Starting thread for model {0}\n'.format(model.tag))