Hydra: Sweep over all options of default with one key

Created on 4 Oct 2019  ยท  4Comments  ยท  Source: facebookresearch/hydra

๐Ÿš€ Feature Request

Sweep over all options of default with one key, such as *

Motivation

This would give us cleaner command line arguments.

Pitch

Example of a current run in our conf directory:

.
โ”œโ”€โ”€ config.yaml
โ”œโ”€โ”€ dynamics_model
โ”‚ย ย  โ”œโ”€โ”€ de.yaml
โ”‚ย ย  โ”œโ”€โ”€ d.yaml
โ”‚ย ย  โ”œโ”€โ”€ env.yaml
โ”‚ย ย  โ”œโ”€โ”€ pe.yaml
โ”‚ย ย  โ””โ”€โ”€ p.yaml

We could change

python pets/main.py -m env=cartpole dynamics_model=p,pe,d,de random_seed=1,2,3 mode=debug

to

python pets/main.py -m env=cartpole dynamics_model=* random_seed=1,2,3 mode=debug

I'm not sure if this is tractable, but could be fun :).

Are you willing to open a pull request? (See CONTRIBUTING)
If I am pointed in the right direction, I could attempt.

enhancement

Most helpful comment

BasicSweeper improvements will come in 1.1.0

All 4 comments

BasicSweeper improvements will come in 1.1.0

Hello @natolambert, can I take this issue?

Hi @imanishbarnwal, this is planned for Hydra 1.1. there is some work going on to define a grammar that covers this as well.
See #752 and the linked document.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jan-matthis picture jan-matthis  ยท  3Comments

alexeib picture alexeib  ยท  4Comments

lkhphuc picture lkhphuc  ยท  3Comments

SunQpark picture SunQpark  ยท  4Comments

vict0rsch picture vict0rsch  ยท  4Comments