Closed becktepe closed 5 months ago
This is expected behavior of hydra, you should use "+" in front of arguments that don't exist. I can't explain what's going on here though in the first place - is "experiments" a global config you have somewhere? I assume on the ARLBench experiments branch?
The issue here was that the config was previously resolved at some point and then if the sweeper tries to do this again to write the final config, the global experiments keyword is gone. I simply wrapped this case, the final config ends up looking correct in your case.
Description
For an experiment, I want to override certain values in my configuration using a config file specified as an argument. However, the config only overrides existing attributes, it is not included in the config. This seems to crash the hypersweeper when building the final config once all runs are done.
Steps/Code to Reproduce
In addition to some configurations in configs/environment and configs/algorithm, I am using this file (configs/experiments/dqn_cartpole.yaml):
I am running the hyper sweeper:
python runscripts/run.py -m experiments=dqn_cartpole
Expected Results
It should just run successfully :-)
Actual Results
After all runs are completed, the hypersweeper throws this error:
Additional Info