florianhartig / BayesianTools

General-Purpose MCMC and SMC Samplers and Tools for Bayesian Statistics
https://cran.r-project.org/web/packages/BayesianTools/index.html
117 stars 29 forks source link

Number of calls to likelihood function #250

Open sbuis opened 1 year ago

sbuis commented 1 year ago

Hi Florian,

When using DEzs or DREAMzs, I noticed that the number of calls to the likelihood function was much lower than the number of iterations required (see reprex here-attached, number of iterations is set to 300 and total number of calls to the likelihood function is about 60).

Is it expected? If yes, could you please explain why and what is done during the iterations for which the likelihood is not called?

all the best, Samuel

test_BT.txt

florianhartig commented 8 months ago

Hi Samuel,

I'm very sorry about the slow response. Most likely, this is because the likelihood is not evaluated if the proposal is outside the prior. However, I haven't checked that this is the case in your code.

Daniel, can you have a look at this?