Unable to add new config parameters
See original GitHub issueSystem information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
- Ray installed from (source or binary):
pip install ray
- Ray version:
- Python version: 3.6.5
- Exact command to reproduce:
python train_ppo.py
Describe the problem
I am trying to train sonic-on-ray
here
When I execute python train_ppo.py
, ray.rllib.utils.init
gives me:
raise Exception("Unknown config parameter `{}` ".format(k))
for everything NEW inside config.update( { } )
.
I tried config[newKey] = value
, nothing seems to allow me to add new keys.
- How do I set
new_keys_allowed
toTrue
? In agent.py_allow_unknown_configs
is set toFalse
. Am I suppose to modify this toTrue
? And if I didn’t installray
from source, how would I change that? - And what is the up-to-date syntax on updating config using
config.update(dict)
? I tried looking at the documentation I’m wondering is"timesteps_per_batch"
orsgd_stepsize
changed under a different name? Since these keys are no longer under theDEFAULT_CONFIG
inside eitheragent.py
orppo.py
If so, what are the new names for these keys? or can someone from ray update thesonic-on-ray
repo?
As always, thanks a lot
Source code / logs
Created LogSyncer for /home/peng00/ray_results/PPO_sonic_env_2018-10-29_22-07-56i9zwqmz5 -> None
Traceback (most recent call last):
File "train_ppo.py", line 65, in <module>
alg = ppo.PPOAgent(config=config, env=env_name)
File "/home/peng00/miniconda3/envs/sonic/lib/python3.6/site-packages/ray/rllib/agents/agent.py", line 216, in __init__
Trainable.__init__(self, config, logger_creator)
File "/home/peng00/miniconda3/envs/sonic/lib/python3.6/site-packages/ray/tune/trainable.py", line 84, in __init__
self._setup()
File "/home/peng00/miniconda3/envs/sonic/lib/python3.6/site-packages/ray/rllib/agents/agent.py", line 253, in _setup
self._allow_unknown_subkeys)
File "/home/peng00/miniconda3/envs/sonic/lib/python3.6/site-packages/ray/rllib/utils/__init__.py", line 35, in deep_update
raise Exception("Unknown config parameter `{}` ".format(k))
Exception: Unknown config parameter `timesteps_per_batch`
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unable To Add Value To Custom App.Config Section
When the user goes to add a new key the the "servers" section, it throws the below exception. System.Configuration.ConfigurationErrorsException: ...
Read more >Unable to edit account settings or add a new view
To edit account settings or add a new view, you need to have the Editor role. If you do not have this permission...
Read more >Create and edit configurations - Visual Studio (Windows)
Learn how you can use Visual Studio to create and edit several build configurations for your solution.
Read more >Fix 'Unable to write into user settings" | Visual Studio Code
Getting an annoying error whenever you're changing settings in Visual Studio Code (VS Code)? Well, this video shows you how things might be ......
Read more >Edit the Configuration File Parameters in the VMware Host ...
In the Configuration Parameters row, click Edit Configuration. The Configuration Parameters dialog box opens. (Optional) To add a parameter, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That would be sample_batch_size.
On Tue, Oct 30, 2018 at 1:09 PM jhpenger notifications@github.com wrote:
@ericl , sorry i updated the comment, can’t figure out what min_steps_per_task is