Closed peterzh closed 9 years ago
Thanks Peter, redirecting this to @mgelbart
I fixed this. Those examples shouldn't even be there... I only meant for the "toy" example to be there but they must have got copied in from the main branch. In any case the constrained one should be working now too. Let me know if there are more issues.
Hi @mgelbart , thanks! One quick question: If the 'constrained' example shouldn't be there, then am I right in saying that this code is designed to handle objective functions which sometimes return NaN values? For example an objective function such as:
import numpy as np
def main(job_id, params):
x = params['X']
if cos(x)==0:
return np.nan
else:
return tan(x)
I'm trying to optimise a black-box objective function where some parameter values give NaNs, but these constraints are unknown. Thanks!
Spearmint does work with NaNs, but the particular combination of PESC and NaNs may give less good results. I suggest you try out both PESC and EI for your problem just in case EI does better. My guess is that PESC will do much better than EI when there are no NaNs and maybe similar when there are NaNs.
Hi I get the following error when running the 'constrained' example using PESC using the latest origin/PESC code. All other examples appear to work fine for me. It appears to do a single fit but then produces errors when trying to identify the next point to search.
I looked into the code and it seems
model.options
doesn't have a key'binomial_trials'
. Alsomodel._one_minus_epsilon
is not defined.Any help would be appreciated, Thanks.