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

How to specify priors? #55

Open
montanari opened this issue May 11, 2016 · 0 comments
Open

How to specify priors? #55

montanari opened this issue May 11, 2016 · 0 comments

Comments

@montanari
Copy link

montanari commented May 11, 2016

Hi,

I'd like to add a Gaussian prior, let's say:
data.parameters['H0'] = [72., None, None, 1.0, 1, 'cosmo', 'gaussian', 73., 2.00]

Is that the right way of passing the input? In that case, there seems to be a bug in data.py, where the entry self['role'] = array[-1] should be replaced by self['role'] = array[5]. Do you agree?

Indeed, in prior.py it is defined:

self.prior_type = array[6].lower()
self.mu = array[7]
self.sigma = array[8]

Cheers,
Francesco

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

1 participant