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

Input parameter not getting sampled over #389

Open
ash2223 opened this issue Nov 12, 2024 · 3 comments
Open

Input parameter not getting sampled over #389

ash2223 opened this issue Nov 12, 2024 · 3 comments

Comments

@ash2223
Copy link

ash2223 commented Nov 12, 2024

Hello!

I'm having an issue in Cobaya where I'm allowing an extra input parameter in my extended model to vary, but in the chains it's showing up as a fixed value. Here are screenshots of three different steps in the chains--the parameter that is supposed to vary is in the 9th column, and you can see it's the same value in each step (the rest of the chain continues this way).

Screen Shot 2024-11-12 at 2 09 59 PM Screen Shot 2024-11-12 at 2 10 16 PM Screen Shot 2024-11-12 at 2 10 30 PM

I'm running in parallel so when I open another chain (ending in "2.txt" instead of "1.txt"), the value is different but still stays fixed for the rest of this chain:

Screen Shot 2024-11-12 at 2 15 11 PM Screen Shot 2024-11-12 at 2 15 25 PM Screen Shot 2024-11-12 at 2 15 37 PM

I'm wondering if anyone has seen this error before? I've run with this exact model in MontePython with no problem so I'm at a loss for what might be happening. Also scoured the readthedocs and coming up empty. Any help would be appreciated!

Thanks,
Adam

P.S. Here is the part of the input yaml file where I specify that I want this parameter to vary:

Screen Shot 2024-11-12 at 2 18 40 PM
@cmbant
Copy link
Collaborator

cmbant commented Nov 13, 2024

Hard to tell from just that. You can run with --debug to see more details about what is being varied and how.
Normally it's a good idea to re-scale parameters to be O(1), though that should also be done internally anyway.

@ash2223
Copy link
Author

ash2223 commented Nov 13, 2024

Thanks Antony! Yeah I took a look at the debug file already and it doesn't look different from runs that I've done in which the parameter was sampled properly. I've attached the debug file here:
debug_TCA.txt

@ash2223
Copy link
Author

ash2223 commented Nov 18, 2024

Looks like it's working now, after I changed the prior from "norm" to "uniform". Is this an issue anyone has seen before? Wondering why it would get stuck so easily on norm, but a uniform distribution is acting fine (especially because I know the resulting distribution will be a Gaussian). Thank you!

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

No branches or pull requests

2 participants