HIPS / Spearmint

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

Example code working but nothing else #97

Open danbraunai opened 7 years ago

danbraunai commented 7 years ago

Hi, I managed to get the example code (simple) working, but when I change the branin function in branin.py and run spearmint again (after cleaning up), the program runs as if I hadn't changed anything and still outputs the same results. I simply changed the body of the branin function to:

def branin(x, y): xval = (x-4)2 yval = (y-8)2 return xval + yval

But the output does not converge to 0 (x=4, y=8) as I would expect.

If anyone knows what the problem may be please help me out. Cheers.

EDIT: I managed to get it working. I had to modify the existing example files instead of creating a new one. Perhaps I had some paths mixed around