AML Wrapper for ddm_predictor.py#58
Conversation
…l and included the job.yml for running jobs
|
@juanvergaramunoz - I'd like to make one more edit today that will make things a bit easier, which is to convert the DDM repo into a package that we can pip install. That will make things easier for |
|
@akzaidi, did you see the pytest failed? I think we need to setup numpy version to be >=1.16 & <1.20 -- and it seems currently we ask for 1.22.0 On a different note, if you are close to pushing the commit with the change you indicated above, I will hold my review. Otherwise, I will review what is already there. |
- print error message after clarification to run `python ddm_trainer.py`
|
Numpy error identified that causes verbose logging to the point of storage overflow. Adding the Removal of that message causes an output file size reduction of x9. Reducing the original output log file from 12GB to only 1.3GB Additionally, removal of a print that indicated "No signal builder used" further reduced the output log file by another factor of x3. |
- modified signal builder log from `print()` to `logger.info()`. - add `object` type to creation of input data numpy array. -- this change shrunk output log file size by an order of x9.
- modify script to use ray.tune.tuner instead of the algo object. -- it will permit easier introduction of checkpoint saving.
- incorporate functionality to keep track of training reward evolution. - use pretty_print
- add checkpoint functionality. - define output folder to point to AML output folder. - update Ray to 2.5 to use latest version of output folder definition.
- add instructions for training your rl agent using ray rllib.
Soundtrack
Description
Updates the
ddm_predictor.pyscript to utilize Ray for training your policy rather than Bonsai.Usage
python ddm_predictor.py simulator.policy=ray-aml.python ddm_predictor.py simulator.policy=ray-local.Fixes # (issue): NA
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: