HIPS / Spearmint

Spearmint Bayesian optimization codebase
Other
1.54k stars 328 forks source link

Objective function containing an API request doesn't work #123

Closed JawharAfli closed 3 years ago

JawharAfli commented 3 years ago

Hi there. I've created my own example in the folder Spearmint/examples with the appropriate files. My objective function needs to send a GET request with the given suggestions to an API in order to retrieve the response and return it. Yet somehow when i run the script it ignores that request and it keeps pending like this.

Using database at localhost. Getting suggestion...

Suggestion: NAME TYPE VALUE


            y             int        1
            x             int        512

Submitted job 1 with local scheduler (process id: 616). Status: 1 pending, 0 complete.

Getting suggestion...

Suggestion: NAME TYPE VALUE


            y             int        1
            x             int        512

Submitted job 2 with local scheduler (process id: 627). Status: 1 pending, 0 complete.

Getting suggestion...

Suggestion: NAME TYPE VALUE


            y             int        1
            x             int        512

Submitted job 3 with local scheduler (process id: 638). Status: 1 pending, 0 complete.