Closed MarcCote closed 8 years ago
@ASalvail this one
There you go, some questions/suggestions/insights.
@ppoulin91 I added the following test to check your comment "Define sigma_t, decaying at each timestep" but it's failing. can you have a look?
@MarcCote I'll have a look
This PR allows you to save and load an experiment. Basically, it allows to save/load the state of the following classes:
Trainer
,Optimizer
,BatchScheduler
,Loss
,Model, and
Task`.For a complete example, check function
test_resume_experiment
insmartlearner/tests/test_smartlearner.py
.Note: this PR break backward compatibility if your models were defining the
load
method. To be coherent with the rest of the frameworkload
is now a method (opposed to a classmethod) that "replaces" the parameters value of an existing instance ofModel
. To create a new instance from data saved on disk, one can use the new methodcreate
(to be implemented by the subclasses).