List of things to convert:
Instructions from proposal document:
- Copy experiment
xxx.cfg files to corresponding directory in recipes
- Move
[global] section to a yaml file (e.g. params.yaml), rename to constants:
- Move each element of
[functions] section to the yaml file
- Convert all
= to :
- Remove final [\endtag]
- Split
functions: into saveables: and functions:
- For most models (especially ones with
replicate parts), move all model code to a model.py file. Define a new subclass of torch.nn.Module that takes all key model parameters (e.g. number of layers, etc.) and use these parameters to build the model.
- Move all code in cfg hierarchy computation sections to an ‘experiment.py` python file
- At top of
experiment.py, instantiate an Experiment object and pass:
- Params file object
- Command line parameters (i.e. sys.argv[1:])
- When
execute_computations would be called, instead:
- Create a dataloader if necessary
- Add a loop to code if necessary
List of things to convert:
Instructions from proposal document:
xxx.cfgfiles to corresponding directory inrecipes[global]section to a yaml file (e.g.params.yaml), rename toconstants:[functions]section to the yaml file=to:functions:intosaveables:andfunctions:replicateparts), move all model code to a model.py file. Define a new subclass oftorch.nn.Modulethat takes all key model parameters (e.g. number of layers, etc.) and use these parameters to build the model.experiment.py, instantiate anExperimentobject and pass:execute_computationswould be called, instead: