Open flipoyo opened 2 weeks ago
please pay attention to issue #90
reprogram compute_mcmc merging the 3 methods compute_dream_mcmc_without_sigma2, compute_mcmc_with_sigma2, compute_mcmc_without_sigma2. The two last ones are a specific case of the first one. The new method should be able to handle multiple MCMC. First, there is a burning phase for each chain. Then each iteration is divided into: 1 perturbation of the param sample 2 forward modelling 3 energy calculation
Once finished the last step is the quantile calculation
Please note that for the burning phase the perturbation is a classic random walk i think not using the DREAM perturbation, to be validated by thomas romary
Actually, the dream perturbation is performed from the beginning. It helps entering faster the stationary regime, hence reducing the burn-in phase.
Merge the mcmc method in core.py, especially with or without sigma. The replication of multiple instructions in different methods is not acceptable.
One way to do is to set sigma2=None when not required (ie by default and add a if sigma2 != None for specificities related to sigma2