From 4f68132cc9c62860bd3368e559e430961c872636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Mon, 18 May 2015 18:57:08 -0400 Subject: Use os.path.join and close files --- config/joint_simple_mlp_tgtcls_111_cswdtx_noise_dout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/joint_simple_mlp_tgtcls_111_cswdtx_noise_dout.py') diff --git a/config/joint_simple_mlp_tgtcls_111_cswdtx_noise_dout.py b/config/joint_simple_mlp_tgtcls_111_cswdtx_noise_dout.py index 1faea15..356c3a5 100644 --- a/config/joint_simple_mlp_tgtcls_111_cswdtx_noise_dout.py +++ b/config/joint_simple_mlp_tgtcls_111_cswdtx_noise_dout.py @@ -1,3 +1,4 @@ +import os import cPickle from blocks import roles @@ -14,7 +15,7 @@ n_end_pts = 5 n_valid = 1000 -with open("%s/arrival-clusters.pkl" % data.path) as f: +with open(os.path.join(data.path, 'arrival-clusters.pkl')) as f: dest_tgtcls = cPickle.load(f) # generate target classes for time prediction as a Fibonacci sequence -- cgit v1.2.3