Combine simulation-based inference with gravitational-wave specific tricks such as relative binning, folding, and coordinate transformations, to get the best of both worlds.
git clone git@github.com:jroulet/labrador.gitconda create -n ENVIRONMENT_NAME pip cogwheel-pe sbi -c conda-forge
conda activate ENVIRONMENT_NAME(replace ENVIRONMENT_NAME by a name of your choice, e.g. labrador.)
Note: it's better to install those packages with
condarather thanpip, at least in the LDG computers.
cd labrador
pip install -e .See notebooks/workflow.ipynb or use the cheatsheet below.
lab-setup-rundir PARENTDIR
lab-generate-data-htcondor RUNDIR --submit-arg accounting_group=ACCOUNTING_GROUP --submitNote: this submits a
.dagfile that in turn orchestrates several.subfiles. If you get a crash due to insufficient resources, you may adjust the requests in the corresponding.sub, delete from the.dagthose jobs that have already succeeded, delete the.rescuefile, and resubmit the.dagwithcondor_submit_dag DAGMAN_PATH.
lab-setup-rescalerdir PRIORDIR
python -m labrador.rescaling RESCALERDIRlab-setup-sbidir RESCALERDIR
python -m labrador.training SBIDIRlab-setup-unfolderdir RESCALERDIR
python -m labrador.unfolding UNFOLDERDIR