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
(true values are 0.20 for phi0 and 5e-7 for omega).
At this point, rather than finishing off, the code just hangs and does not complete.
What I Did
A psuedo example is as follows
defprior_transform(quantile_cube):
transformed_parameters=np.empty_like(quantile_cube)
# first parameter: a uniform distributiontransformed_parameters[0] =0.0+np.pi*quantile_cube[0]
# second parameter: a log-uniform distributiontransformed_parameters[1] =10**(-8+2*quantile_cube[1])
returntransformed_parametersdefmy_likelihood(params):
p_copy=guessed_parameters.copy() # this is a dictionary defined globally phi_var, omega_var=paramsp_copy["phi0_gw"] =phi_varp_copy["omega_gw"] =omega_varll=KF.likelihood(p_copy) # this is a function of the class `KF` which accepts a parameters dictionary and returns a likelihoodreturnllparam_names= ['phi0', "omega"]
importultranestprint("Running sampler")
sampler=ultranest.ReactiveNestedSampler(param_names, my_likelihood, prior_transform)
result=sampler.run()
sampler.print_results()
I expect this could be due to the likelihood surface being very very narrow at the true values of the parameters. In this case, is there are way to force Ultranest to complete gracefully?
The text was updated successfully, but these errors were encountered:
Looks like you are probably hitting limitations of floating points. Between +0.1999999999 and +0.2000000001, there aren't a lot of values, so the proposal procedure may have difficulty finding new, unique points with higher likelihood. You could try reparametrizing the problem. Is it possible that the likelihood is a bit unrealistic (too informative)?
Description
I am testing out Ultranest, trying to do an inference on a simple 2-parameter likelihood.
Ultranest converges well; I can see from the live point display that the live points are converged very close to the true values, e.g.
(true values are 0.20 for phi0 and 5e-7 for omega).
At this point, rather than finishing off, the code just hangs and does not complete.
What I Did
A psuedo example is as follows
I expect this could be due to the likelihood surface being very very narrow at the true values of the parameters. In this case, is there are way to force Ultranest to complete gracefully?
The text was updated successfully, but these errors were encountered: