flipoyo / MOLONARI1D

Eclipse Public License 2.0
4 stars 3 forks source link

clean up the mcmc method in core.py #73

Open flipoyo opened 2 weeks ago

flipoyo commented 2 weeks ago

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

flipoyo commented 2 weeks ago

please pay attention to issue #90

flipoyo commented 2 weeks ago

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

  1. acceptance of the proposal
  2. initialization of the prior for next step
  3. storage of the forward models according to subsampling (iteration subsampling)

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

tromary commented 2 weeks ago

Actually, the dream perturbation is performed from the beginning. It helps entering faster the stationary regime, hence reducing the burn-in phase.