CobayaSampler / cobaya

Code for Bayesian Analysis
http://cobaya.readthedocs.io/en/latest/
Other
122 stars 125 forks source link

Importance minimization #331

Closed cmbant closed 8 months ago

cmbant commented 8 months ago

Currently there's no way to easily start a minimization based on a yaml using "post" importance sampling (so grid scripts --importance-minimize also not implemented). I think this would be quite easy from the post run's .updated.yaml (just changing sampler), but the combined_info in updated.yaml calculation is enmeshed in post() and not easily accessible until after the post run has run. So we could either try to refactor so that things can be run in any order, or just try to support it if the post importance filtering chains have been generated.

cmbant commented 8 months ago

I attempted this in https://github.com/CobayaSampler/cobaya/pull/326 (via passing from run, to post to generate expanded updated yaml, then back to run to minimize)