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

How to create likelihood for multi-crop models #201

Closed florianhartig closed 4 years ago

florianhartig commented 4 years ago

Question from a user:

I am a PhD candidate working on BMA using multi-crop models. My likelihood is calculated from outputs that the models write to files. Would you help me with how I can parallelize such functions to run MCMC, please?

florianhartig commented 4 years ago

Hi,

have you seen our vignette on how to interface your model with R / BayesianTools https://cran.r-project.org/web/packages/BayesianTools/vignettes/InterfacingAModel.html ? It my be that your questions are already answered there.

About parallelisation - because this could be a bit tricky for models that write outputs to file, may I ask: have you already run the samplers without parallelisation? I would first do this and make sure that this works, to minimise errors and make sure that the parallelisation is actually needed.

Best, Floran