aboutsummaryrefslogtreecommitdiff
path: root/config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py
diff options
context:
space:
mode:
authorÉtienne Simon <esimon@esimon.eu>2015-05-18 18:57:08 -0400
committerÉtienne Simon <esimon@esimon.eu>2015-05-18 18:57:08 -0400
commit4f68132cc9c62860bd3368e559e430961c872636 (patch)
tree275554a1abcd419d0c477b639dcbd50189d3245d /config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py
parent6d946f29f7548c75e97f30c4356dbac200ee6cce (diff)
downloadtaxi-4f68132cc9c62860bd3368e559e430961c872636.tar.gz
taxi-4f68132cc9c62860bd3368e559e430961c872636.zip
Use os.path.join and close files
Diffstat (limited to 'config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py')
-rw-r--r--config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py b/config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py
index c0ba36c..1dc26a5 100644
--- a/config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py
+++ b/config/dest_simple_mlp_tgtcls_1_cswdtx_alexandre.py
@@ -1,3 +1,4 @@
+import os
import cPickle
from blocks.initialization import IsotropicGaussian, Constant
@@ -11,7 +12,7 @@ n_end_pts = 5
n_valid = 1000
-with open("%s/arrival-clusters.pkl" % data.path) as f: tgtcls = cPickle.load(f)
+with open(os.path.join(data.path, 'arrival-clusters.pkl')) as f: tgtcls = cPickle.load(f)
dim_embeddings = [
('origin_call', data.origin_call_train_size, 10),