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

Access to hyperparameters from inside unity?

Open vqt123 opened this issue 7 years ago • 5 comments

Is there a way to access the hyperparameters from the code?

vqt123 avatar Jan 25 '19 21:01 vqt123

Changing the hyperparameters in Unity is not intended.

If hyperparameters were to be changed in Unity, you couldn't modify them, while using a build of the environment for training. Also, this represents the general flow, like how it is done for Open AI's gym. Thus, it is a little more convenient for RL researchers.

MarcoMeter avatar Jan 28 '19 10:01 MarcoMeter

I think what you want to be doing is changing the values in the config file https://github.com/Unity-Technologies/ml-agents/blob/master/config/trainer_config.yaml

msaroufim avatar Feb 13 '19 05:02 msaroufim

Thank you for the discussion. We are closing this issue due to inactivity.

vincentpierre avatar Apr 03 '19 22:04 vincentpierre

I'd be interested in knowing if there were a way to send hyperparameters from Jupyter. I understand the .yaml config files can be used with the ml-agents command line, but I'm invoking a torch library and need to use the Jupyter setup, as far as I can tell. I would like to adjust various parameters within Unity from Jupyter so that it will be easy to change hyperparameters, especially if running headless. An example parameter is adjusting the number of agents on a team in a team-based environment.

kumarict avatar Nov 06 '19 23:11 kumarict

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.

github-actions[bot] avatar Jan 28 '21 19:01 github-actions[bot]