ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Specify config file

Open r-lipton opened this issue 8 years ago • 6 comments

Hey

Can we specify the config file to run instead of using always trainer_config.yaml when running python3 learn.py? This can be useful for running multiple instances with different parameters

Thanks

r-lipton avatar May 02 '18 11:05 r-lipton

Not really answering your question, but im sure the learning process only reads the condig file once at the beginning. This means you start your first training and then change the config and start your second training. I did this multiple times and im very certain it works

Hengoo avatar May 02 '18 18:05 Hengoo

Yes, I know this is possible, but I want to automate the process, like running one command to launch multiple instances with different configurations. One way to do this is to create a script to replace some value in the trainer_config.yaml and then launch a training and repeat it until the desired number of instances is reached. But is there a simpler way ?

r-lipton avatar May 03 '18 08:05 r-lipton

@r-lipton Couple of things:

  1. Modify learn.py to make the TRAINER_CONFIG_PATH a variable that takes a command line argument rather than a constant.

  2. Now use your wrapper script to run all the experiments by repeatedly calling learn.py. Caveat being that you will have to override the port. You could also very launch a bunch of docker containers (presuming you want to run concurrent experiments that will practically not fit into one machine).

eshvk avatar May 04 '18 12:05 eshvk

@r-lipton This might be what you're looking for https://github.com/mbaske/ml-agents-hyperparams

mbaske avatar May 04 '18 13:05 mbaske

ml-agents-hyperparams is exactly what I am looking for thanks!

r-lipton avatar May 04 '18 14:05 r-lipton

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 03 '20 11:01 lock[bot]