Included PTMCMC and Bilby bayesian sampling techniques in anis_pta.py. Power_basis for now.#8
Open
kushagrann wants to merge 35 commits intoNihanPol:mainfrom
Open
Included PTMCMC and Bilby bayesian sampling techniques in anis_pta.py. Power_basis for now.#8kushagrann wants to merge 35 commits intoNihanPol:mainfrom
kushagrann wants to merge 35 commits intoNihanPol:mainfrom
Conversation
…. Power_basis for now.
Added ipynb_checkpoints to .gitignore
…parameter_keys) which caused injection recovery to fail. Edited injected_anisotropy in utils.py
…l basis in bilby.
…hen resuming sampling.
…rmodel functions in utils.
…sotropy in utils.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added the
LogLikelihood,LogPriorandset_ptmcmcfunctions insideanis_ptaclass suitable to perform bayesian inference with PTMCMC. Also created a handy functioninject_anisotropysuitable for injection studies which createsinjectedinstance attributes ofanis_ptafor helping with post-processing. Theset_ptmcmcfunction also has a flag argumentsave_anisotropywhich saves theanis_ptainstance as a pickle in the PTMCMC outdir for a handy post-processing.In addition, created a sperate class named
set_bilbyinsideanis_pta.pysuitable for performing bayesian inference with Bilby.Both works with pair covariance. Hence, for it a handy (hidden as it starts with _) instance attribute
._lik_denomis created when we useset_datafunction which helps reduce computation cost by overcoming calculation of the determinant of the pair covariance matrix every time in the likelihood functions. This instance attribute is only activated if we supply a pair covariance matrix toset_datafunction.