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 thinned the posterior samples? #1

Closed
yanyuechuixue opened this issue Jul 31, 2018 · 3 comments
Closed

How to thinned the posterior samples? #1

yanyuechuixue opened this issue Jul 31, 2018 · 3 comments
Assignees

Comments

@yanyuechuixue
Copy link

I use the script in run_files and get "gw150914_inference.hdf" file,
but it is not same with "gw150914_posteriors_thinned.hdf".

Could you introduce the method of how to thinned the posterior samples?

@cdcapano
Copy link
Collaborator

You need to run pycbc_inference_extract_samples on gw150914_inference.hdf file, but I'm not sure what thin interval settings @soumide1102 used. @soumide1102 can you comment?

It would be good to add the extract samples command to the repo, either as separate scripts, or as an addendum to the run scripts.

@soumide1102
Copy link
Collaborator

Hi @yanyuechuixue The "gw150914_inference_thinned.hdf" contains the thinned chains or independent samples extracted from the chains stored in the output file from the run "gw150914_inference.hdf". I've now added the commands for thinning the chains in scripts calledextract_independent_samples.sh in the events folders under run_files. You'll have to run the script for thinning with a version of PyCBC that is post v1.9.4 ( https://github.com/gwastro/pycbc/releases ).

@yanyuechuixue
Copy link
Author

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

4 participants