aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAdeB <adbrebs@gmail.com>2015-06-24 15:12:15 -0400
committerAdeB <adbrebs@gmail.com>2015-06-24 15:12:15 -0400
commit88cdc3f8047a05bc5971eaa915ca6626f89a3e78 (patch)
treeaf9bc201cf442588492316b2360bd0bd16c8b843 /test.py
parentbd08e452093bba68fe2d79b1e9da76488b203720 (diff)
downloadtaxi-88cdc3f8047a05bc5971eaa915ca6626f89a3e78.tar.gz
taxi-88cdc3f8047a05bc5971eaa915ca6626f89a3e78.zip
New configs. training step rule out of train.py
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test.py b/test.py
index 1a59d49..4925b27 100755
--- a/test.py
+++ b/test.py
@@ -1,11 +1,11 @@
#!/usr/bin/env python
+import cPickle
import sys
import os
import importlib
import csv
-from blocks.dump import load_parameter_values
from blocks.model import Model
@@ -24,7 +24,8 @@ if __name__ == "__main__":
test_stream = stream.test(req_vars_test)
model = Model(model_config.predict(**inputs))
- parameters = load_parameter_values(os.path.join('model_data', model_name, 'params.npz'))
+ with open(os.path.join('model_data', "{}.pkl".format(model_name))) as f:
+ parameters = cPickle.load(f)
model.set_param_values(parameters)
if 'destination' in outputs: