transform

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

commit d9290b3351adbe35acce33915509364c10f609e1
parent 90ac98b7cba5af11e57ae75f6ec5b4dbd33ab1c6
Author: Étienne Simon <esimon@esimon.eu>
Date:   Tue, 17 Jun 2014 14:03:45 +0200

Fix meta model name generation

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

diff --git a/config.py b/config.py @@ -18,7 +18,7 @@ def expand_config(base_config): configs = [ base_config.copy() for _ in xrange(size) ] for (config, index) in zip(configs, xrange(size)): if not isinstance(config['model name'], list): - config['model name'] = ('{0} {1:0{width}}').format(config['model name'], index, width=len(str(size))) + config['model name'] = ('{0} {1:0{width}}').format(config['model name'], index, width=len(str(size-1))) for k, v in config.iteritems(): if isinstance(v, list): config[k] = v[index]