HIPS / Spearmint

Spearmint Bayesian optimization codebase
Other
1.55k stars 329 forks source link

KeyError: 'NaN' #45

Open JohnReid opened 9 years ago

JohnReid commented 9 years ago

Any idea why spearmint fell over with this? I'm running on git commit ac8a37e7eac0134d7af61a2d2a06f6fa78a34c74 from Sep 29.

Fitting GP for main task...
Getting suggestion...

Minimum expected objective value under model is 0.12737 (+/- 0.01400), at location:
                NAME          TYPE       VALUE
                ----          ----       -----
                line_width    float      0.050000
                log_line_V    float      -1.000000
                log_combo_V   float      -1.000000
                log_combined  float      -1.000000
                synergy_widt  float      10.000000
                combo_width   float      0.050000

Minimum of observed values is 0.121821, at location:
                NAME          TYPE       VALUE
                ----          ----       -----
                line_width    float      0.050000
                log_line_V    float      -1.000000
                log_combo_V   float      -1.000000
                log_combined  float      -1.000000
                synergy_widt  float      10.000000
                combo_width   float      0.050000

Suggestion:     NAME          TYPE       VALUE
                ----          ----       -----
                line_width    float      0.400000
                log_line_V    float      1.000000
                log_combo_V   float      -1.000000
                log_combined  float      -1.000000
                synergy_widt  float      10.829132
                combo_width   float      0.400000
Submitted job 3 with local scheduler (process id: 52394).
Status: 1 pending, 1 complete.

Fitting GPClassifier for NaN task...
Getting suggestion...

Suggestion:     NAME          TYPE       VALUE
                ----          ----       -----
                line_width    float      0.312500
                log_line_V    float      -0.500000
                log_combo_V   float      -0.500000
                log_combined  float      0.500000
                synergy_widt  float      115.000000
                combo_width   float      0.137500
Submitted job 3 with local scheduler (process id: 52532).
Status: 1 pending, 1 complete.

Fitting GP for main task...
Getting suggestion...
Traceback (most recent call last):
  File "spearmint/main.py", line 494, in <module>
    main()
  File "spearmint/main.py", line 286, in main
    suggested_job = get_suggestion(chooser, resource.tasks, db, expt_dir, options, resource_name)
  File "spearmint/main.py", line 361, in get_suggestion
    suggested_input = chooser.suggest()
  File "/home/john/Dev/AZSanger/etc/Spearmint/spearmint/choosers/default_chooser.py", line 335, in suggest
    current_best, current_best_location = self.best()
  File "/home/john/Dev/AZSanger/etc/Spearmint/spearmint/choosers/default_chooser.py", line 447, in best
    mc = self.probabilistic_constraint(grid)
  File "/home/john/Dev/AZSanger/etc/Spearmint/spearmint/choosers/default_chooser.py", line 519, in probabilistic_constraint
    for c in self.constraints],
KeyError: 'NaN'