Hydra: [Feature Request] Range support in BasicSweeper

Created on 31 Jan 2020  路  2Comments  路  Source: facebookresearch/hydra

馃殌 Feature Request

Motivation

It'd be great if Hydra's basic sweeper supported range sweeping out of the box.

Pitch

Provide a simple syntax for range sweeping, e.g.:

  • python foo.py a=1:5 -> python foo.py a=1,2,3,4,5
  • python foo.py a=1:10:2 -> python foo.py a=1,3,5,7,9

This has been implemented in @BadrYoubiIdrissi's range-sweeper plugin.

In addition, it might be helpful to disable range sweeping or change the separator char for people who rely on it.

Additional context

FR following discussion with @omry on Zulip.

enhancement

Most helpful comment

This syntax is consistent with the syntax in the coming Ax plugin.

I will look into supporting this in the basic sweeper in 1.1.0.

All 2 comments

This syntax is consistent with the syntax in the coming Ax plugin.

I will look into supporting this in the basic sweeper in 1.1.0.

Was this page helpful?
0 / 5 - 0 ratings