{"id":28469635,"url":"https://github.com/bilby-dev/nessai-bilby","last_synced_at":"2025-08-20T18:59:43.622Z","repository":{"id":206242876,"uuid":"715111449","full_name":"bilby-dev/nessai-bilby","owner":"bilby-dev","description":"Interface and plugin for using nessai in bilby","archived":false,"fork":false,"pushed_at":"2025-06-03T19:00:17.000Z","size":34,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-01T16:51:17.479Z","etag":null,"topics":["bayesian-inference","nested-sampling"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bilby-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-06T13:57:17.000Z","updated_at":"2025-06-03T19:00:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5d4030b-6bb0-404c-8387-94f1b2cc1de2","html_url":"https://github.com/bilby-dev/nessai-bilby","commit_stats":null,"previous_names":["mj-will/nessai-bilby","bilby-plugins/nessai-bilby"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bilby-dev/nessai-bilby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilby-dev%2Fnessai-bilby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilby-dev%2Fnessai-bilby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilby-dev%2Fnessai-bilby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilby-dev%2Fnessai-bilby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilby-dev","download_url":"https://codeload.github.com/bilby-dev/nessai-bilby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilby-dev%2Fnessai-bilby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271369310,"owners_count":24747793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayesian-inference","nested-sampling"],"created_at":"2025-06-07T09:08:07.737Z","updated_at":"2025-08-20T18:59:43.579Z","avatar_url":"https://github.com/bilby-dev.png","language":"Python","readme":"# nessai-bilby\n\nInterface and plugin for using `nessai` in `bilby`.\n\nThis plugin provides two samplers that can be used in `bilby`:\n\n- `nessai`: the standard nested sampler from `nessai`\n- `inessai`: the importance nested sampler from nessai\n\n\nIt also provides a means to use `bilby` likelihoods and priors directly in\n`nessai`, see [using bilby likelihoods in nessai](#using-bilby-likelihoods-in-nessai)\n\n## Installation\n\nThe package can be installed using pip\n\n```\npip install nessai-bilby\n```\nor conda\n\n```\nconda install conda-forge::nessai-bilby\n```\n\nHowever, we recommend following installing PyTorch manually to ensure the\ncorrect device support.\n\n**Note:** this plugin requires \"bilby\u003e=2.3.0\".\n\n\n## Usage\n\n### In bilby\n\nOne `nessai-bilby` is installed, both samplers can be used directly in `bilby`\nvia the `run_sampler` function. See the bilby documentation for more details\non how to run different samplers.\n\n\n### Using bilby likelihoods in nessai\n\n`nessai-bilby` also provides two model classes that allow bilby likelihood and\npriors to be used directly with nessai:\n\n- `nessai_bilby.model.BilbyModel`: \n- `nessai_bilby.model.BilbyModelLikelihoodConstraint`:\n\n\nEither model can be used by creating an instance of the model and running `nessai` as usual:\n\n```python\nfrom nessai.flowsampler import FlowSampler\nfrom nessai_bilby.model import BilbyModel\n\nlikelihood = ...    # bilby likelihood object\npriors = ... # bilby PriorDict\n\nmodel = BilbyModel(\n    priors=priors,\n    likelihood=likelihood,\n    use_ratio=True    # Whether to use the log-likelihood ratio\n)\n\nfs = FlowSampler(\n    model,\n    ...,\n)\n\nfs.run()\n```\n\n## Citing\n\nIf you use `nessai-bilby`, please cite the `nessai` and `bilby` code bases and the corresponding papers.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilby-dev%2Fnessai-bilby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilby-dev%2Fnessai-bilby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilby-dev%2Fnessai-bilby/lists"}