diff options
author | AdeB <adbrebs@gmail.com> | 2015-06-24 15:12:15 -0400 |
---|---|---|
committer | AdeB <adbrebs@gmail.com> | 2015-06-24 15:12:15 -0400 |
commit | 88cdc3f8047a05bc5971eaa915ca6626f89a3e78 (patch) | |
tree | af9bc201cf442588492316b2360bd0bd16c8b843 /test.py | |
parent | bd08e452093bba68fe2d79b1e9da76488b203720 (diff) | |
download | taxi-88cdc3f8047a05bc5971eaa915ca6626f89a3e78.tar.gz taxi-88cdc3f8047a05bc5971eaa915ca6626f89a3e78.zip |
New configs. training step rule out of train.py
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |