summaryrefslogtreecommitdiff
path: root/paramsaveload.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-07-20 13:57:49 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-07-20 13:57:49 -0400
commit99c37ecef356c20673b4ecd5030749e3a6abcf7a (patch)
tree3289721d7882d811f2584ee9701255cb2cd694c1 /paramsaveload.py
parent7bf692d9ae344ccef044923f131f5ce8de85b0b4 (diff)
downloadtext-rnn-99c37ecef356c20673b4ecd5030749e3a6abcf7a.tar.gz
text-rnn-99c37ecef356c20673b4ecd5030749e3a6abcf7a.zip
New model CCHLSTM ; other models broken.
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'paramsaveload.py')
-rw-r--r--paramsaveload.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramsaveload.py b/paramsaveload.py
index e44889d..9c05926 100644
--- a/paramsaveload.py
+++ b/paramsaveload.py
@@ -19,13 +19,13 @@ class SaveLoadParams(SimpleExtension):
def do_save(self):
with open(self.path, 'w') as f:
logger.info('Saving parameters to %s...'%self.path)
- cPickle.dump(self.model.get_param_values(), f, protocol=cPickle.HIGHEST_PROTOCOL)
+ cPickle.dump(self.model.get_parameter_values(), f, protocol=cPickle.HIGHEST_PROTOCOL)
def do_load(self):
try:
with open(self.path, 'r') as f:
logger.info('Loading parameters from %s...'%self.path)
- self.model.set_param_values(cPickle.load(f))
+ self.model.set_parameter_values(cPickle.load(f))
except IOError:
pass