spearmint icon indicating copy to clipboard operation
spearmint copied to clipboard

Procedure for Changing Parameter Range

Open cancan101 opened this issue 10 years ago • 6 comments

Allow for changing the range over which a given parameter is experimented.

This might "just work" now with main being restarted with a different range.

Similar to #35.

cancan101 avatar Oct 21 '14 17:10 cancan101

Unfortunately, this definitely will not work correctly if you restart main with a different range. This would require either writing scripts to extract the old range and create a new experiment or rewriting some of the internals of spearmint.

On Tue, Oct 21, 2014 at 1:41 PM, Alex Rothberg [email protected] wrote:

Allow for changing the range over which a given parameter is experimented.

This might "just work" now with main being restarted with a different range.

Similar to #35 https://github.com/JasperSnoek/spearmint/issues/35.

— Reply to this email directly or view it on GitHub https://github.com/JasperSnoek/spearmint/issues/38.

JasperSnoek avatar Oct 21 '14 18:10 JasperSnoek

Note that this is fixed in the new spearmint repo (https://github.com/HIPS/Spearmint)

JasperSnoek avatar Oct 21 '14 18:10 JasperSnoek

Is this purely because the parameters are decoded with e.g.

variable['min'] + u[index]*(variable['max']-variable['min'])

taion avatar Oct 21 '14 19:10 taion

Yes and the parameters and jobs are stored within the grid object in the unit hypercube (encoded).

On Tue, Oct 21, 2014 at 3:03 PM, Jimmy Jia [email protected] wrote:

Is this purely because the parameters are decoded with e.g.

variable['min'] + u[index]*(variable['max']-variable['min'])

— Reply to this email directly or view it on GitHub https://github.com/JasperSnoek/spearmint/issues/38#issuecomment-59980281 .

JasperSnoek avatar Oct 21 '14 19:10 JasperSnoek

So in order to convert a saved pickle file, I would have to: 0) Stop all running jobs and stop main.py

  1. Modify: expt-grid.pkl/vmap/variables
  2. Rescale: expt-grid.pkl/grid
  3. Change the: config.pb file

Is that it, or am I missing something?

cancan101 avatar Oct 21 '14 20:10 cancan101

Yeah I think that's it!

On Tue, Oct 21, 2014 at 4:01 PM, Alex Rothberg [email protected] wrote:

So in order to convert a saved pickle file, I would have to: 0) Stop all running jobs and stop main.py

  1. Modify: expt-grid.pkl/vmap/variables
  2. Rescale: expt-grid.pkl/grid
  3. Change the: config.pb file

Is that it, or am I missing something?

— Reply to this email directly or view it on GitHub https://github.com/JasperSnoek/spearmint/issues/38#issuecomment-59989059 .

JasperSnoek avatar Oct 21 '14 20:10 JasperSnoek