Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to dump observables #58

Open
cmbant opened this issue Nov 15, 2019 · 2 comments
Open

Function to dump observables #58

cmbant opened this issue Nov 15, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@cmbant
Copy link
Collaborator

cmbant commented Nov 15, 2019

For testing, it's useful to be able to easily get the observables for a specific model to check all settings are correct and that theory predictions agree with expectations. (equivalent of action=4 and test_output_root in CosmoMC)

@cmbant cmbant added the enhancement New feature or request label Nov 15, 2019
@JesusTorrado
Copy link
Contributor

Not sure exactly about what you mean. How is this different from what is done for the Cl's in https://cobaya.readthedocs.io/en/latest/cosmo_model.html ?

@cmbant
Copy link
Collaborator Author

cmbant commented Nov 15, 2019

You're right it is basically there. I was thinking of a single function that would return the dictionary of requested things (In CosmoMC it also writes them to a file, which can be convenient if e.g testing a setup on a cluster - but I would agree not strictly needed). I guess this can be done indirectly by referencing current_state() but not super intuitive. Adding a function to save dict of the observable to a pickle might however also be useful if we want to support data-variation importance sampling without recomputing observables at some point.

Btw, I think in examples we should now use "model.theory" as much more logical than "model.likelihood.theory".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants