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
Hi,
I have a problem when I try to iterate over the optimizer. This is a chunk of my code:
repeat=Truepre_eval= []
whilerepeat:
search=GlobalOptimizer(
search_func,
lower_bounds=loaded_lb,
upper_bounds=loaded_ub,
evaluations=pre_eval,
maximize=True,
epsilon=.01
)
num_function_calls=50search.run(num_function_calls)
pos_eval=search.evaluationspos_eval_x= [diccfordicc,valinpos_evalifval>1.0]
# If we don't have enough logs -> repeatif20<len(pos_eval_x):
repeat=Falseelse:
pre_eval=search.evaluationsprint(f'\n\n\nREPEAT! {n_opt}{len(pos_eval)}{len(pos_eval_x)}\n\n\n')
del(search)
gc.collect()
Between the first and the second iteration I do not detect any problem. From the second iteration onwards the optimizer always uses the same arguments. E.g.:
If I'm updating "evaluations=" by adding the new evaluations performed, why does the optimizer keep repeating the arguments?
I tried to look at the code myself but maybe you can give me a quicker answer.
Thank very much for the help!
The text was updated successfully, but these errors were encountered:
Hi,
I have a problem when I try to iterate over the optimizer. This is a chunk of my code:
Between the first and the second iteration I do not detect any problem. From the second iteration onwards the optimizer always uses the same arguments. E.g.:
I've managed to avoid the problem by indicating a new random_state at each iteration:
If I'm updating "evaluations=" by adding the new evaluations performed, why does the optimizer keep repeating the arguments?
I tried to look at the code myself but maybe you can give me a quicker answer.
Thank very much for the help!
The text was updated successfully, but these errors were encountered: