You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for writing humpday, it looks amazing. I tried out the following:
from math import cos, pi
def rastrigin(a, b):
A = 10
n = 2
value = -(A*n + sum([(x**2 - A*cos(2*pi*x)) for x in (a,b)]))
return value
from humpday import recommend
def my_objective(u):
return rastrigin(u[0], u[1])
recommendations = recommend(my_objective, n_dim=2, n_trials=1000)
recommendations now gives me [(None, None, 'scipy_powell_cube')]
However using lipo, for example, which I think is included with !pip install humpday[full] the function can be efficiently optimized.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Thank you for writing humpday, it looks amazing. I tried out the following:
recommendations now gives me
[(None, None, 'scipy_powell_cube')]
However using
lipo
, for example, which I think is included with!pip install humpday[full]
the function can be efficiently optimized.What am I doing wrong?
The text was updated successfully, but these errors were encountered: