{"id":10970725,"url":"https://github.com/montefiore-institute/hypothesis","last_synced_at":"2025-09-18T16:32:09.978Z","repository":{"id":48199010,"uuid":"152051692","full_name":"montefiore-institute/hypothesis","owner":"montefiore-institute","description":"A Python toolkit for (simulation-based) inference and the mechanization of science.","archived":false,"fork":false,"pushed_at":"2022-04-15T11:38:05.000Z","size":5691,"stargazers_count":52,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-08T05:01:57.345Z","etag":null,"topics":["deep-learning","inference","likelihood-free","simulation-based-inference"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montefiore-institute.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-08T09:17:58.000Z","updated_at":"2024-09-23T10:36:36.000Z","dependencies_parsed_at":"2022-08-24T11:51:43.104Z","dependency_job_id":null,"html_url":"https://github.com/montefiore-institute/hypothesis","commit_stats":null,"previous_names":["montefiore-institute/hypothesis","montefiore-ai/hypothesis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/montefiore-institute/hypothesis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montefiore-institute%2Fhypothesis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montefiore-institute%2Fhypothesis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montefiore-institute%2Fhypothesis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montefiore-institute%2Fhypothesis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montefiore-institute","download_url":"https://codeload.github.com/montefiore-institute/hypothesis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montefiore-institute%2Fhypothesis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275797268,"owners_count":25530253,"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-09-18T02:00:09.552Z","response_time":77,"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":["deep-learning","inference","likelihood-free","simulation-based-inference"],"created_at":"2024-06-10T09:02:04.832Z","updated_at":"2025-09-18T16:32:09.621Z","avatar_url":"https://github.com/montefiore-institute.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/montefiore-ai/hypothesis/blob/master/.github/images/logo.png?raw=true\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/hypothesis-v0.0.3.ALPHA-blue.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-BSD-lightgrey.svg\" /\u003e\n\u003c/p\u003e\n\nA Python toolkit for (likelihood-free) inference and the mechanization of the scientific method.\n\n## Installation\n\n### From source\n\n```sh\ngit clone https://github.com/montefiore-ai/hypothesis\ncd hypothesis\npip install -e .\n```\n\n## Inference\n\n### AALR-MCMC\n\nTODO\n\n### Adversarial Variational Optimization\n\nTODO\n\n### Amortized ratio estimation\n\nTODO\n\n### Approximate Bayesian Computation\n\nTODO\n\n### Approximate Bayesian Computation - Sequential Monte Carlo\n\nTODO\n\n### Likelihood-free Inference by Ratio Estimation\n\nTODO\n\n### Metropolis-Hastings\n\nTODO\n\n## Benchmark problems\n\n### M/G/1\n\n```python\nfrom hypothesis.benchmark.mg1 import Simulator\nfrom hypothesis.benchmark.mg1 import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n```\n\n### Biomolecular docking\n\n\u003e :heavy_check_mark: Supports experimental design\n\n```python\nfrom hypothesis.benchmark.biomoleculardocking import Simulator\nfrom hypothesis.benchmark.biomoleculardocking import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n\nfrom hypothesis.benchmark.biomoleculardocking import PriorExperiment # Experimental design space\n\nprior_experiment = PriorExperiment()\nexperimental_designs = prior_experiment.sample((10,))\n\noutputs = simulator(inputs, experimental_designs)\n```\n\n### Stochastic Death model\n\n\u003e :heavy_check_mark: Supports experimental design\n\n```python\nfrom hypothesis.benchmark.death import Simulator\nfrom hypothesis.benchmark.death import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n\nfrom hypothesis.benchmark.death import PriorExperiment # Experimental design space\n\nprior_experiment = PriorExperiment()\nexperimental_designs = prior_experiment.sample((10,))\n\noutputs = simulator(inputs, experimental_designs)\n```\n\n### Stochastic SIR (Susceptible-Infected-Recovered) model\n\n\u003e :heavy_check_mark: Supports experimental design\n\n```python\nfrom hypothesis.benchmark.sir import Simulator\nfrom hypothesis.benchmark.sir import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n\nfrom hypothesis.benchmark.sir import PriorExperiment # Experimental design space\n\nprior_experiment = PriorExperiment()\nexperimental_designs = prior_experiment.sample((10,))\n\noutputs = simulator(inputs, experimental_designs)\n```\n\n### Stochastic Spatial SIR (Susceptible-Infected-Recovered) model\n\n\u003e :heavy_check_mark: Supports experimental design\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/montefiore-ai/hypothesis/blob/master/.github/images/benchmark-spatialsir.gif?raw=true\" /\u003e\n\u003c/p\u003e\n\n```python\nfrom hypothesis.benchmark.spatialsir import Simulator\nfrom hypothesis.benchmark.spatialsir import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n\nfrom hypothesis.benchmark.spatialsir import PriorExperiment # Experimental design space\n\nprior_experiment = PriorExperiment()\nexperimental_designs = prior_experiment.sample((10,))\n\noutputs = simulator(inputs, experimental_designs)\n```\n\n### Tractable\n\n```python\nfrom hypothesis.benchmark.tractable import Simulator\nfrom hypothesis.benchmark.tractable import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n```\n\n### Weinberg\n\n\u003e :heavy_check_mark: Supports experimental design\n\n```python\nfrom hypothesis.benchmark.weinberg import Simulator\nfrom hypothesis.benchmark.weinberg import Prior\n\nsimulator = Simulator()\nprior = Prior()\n\ninputs = prior.sample((10,)) # Draw 10 samples from the prior.\noutputs = simulator(inputs)\n\nfrom hypothesis.benchmark.weinberg import PriorExperiment # Experimental design space\n\nprior_experiment = PriorExperiment()\nexperimental_designs = prior_experiment.sample((10,))\n\noutputs = simulator(inputs, experimental_designs)\n```\n\n## License\n\nHypothesis is BSD-style licensed, as found in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontefiore-institute%2Fhypothesis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontefiore-institute%2Fhypothesis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontefiore-institute%2Fhypothesis/lists"}