A Python toolkit for (likelihood-free) inference and the mechanization of the scientific method.
git clone https://github.com/montefiore-ai/hypothesis
cd hypothesis
pip install -e .
TODO
TODO
TODO
TODO
TODO
TODO
TODO
from hypothesis.benchmark.mg1 import Simulator
from hypothesis.benchmark.mg1 import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
✔️ Supports experimental design
from hypothesis.benchmark.biomoleculardocking import Simulator
from hypothesis.benchmark.biomoleculardocking import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
from hypothesis.benchmark.biomoleculardocking import PriorExperiment # Experimental design space
prior_experiment = PriorExperiment()
experimental_designs = prior_experiment.sample((10,))
outputs = simulator(inputs, experimental_designs)
✔️ Supports experimental design
from hypothesis.benchmark.death import Simulator
from hypothesis.benchmark.death import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
from hypothesis.benchmark.death import PriorExperiment # Experimental design space
prior_experiment = PriorExperiment()
experimental_designs = prior_experiment.sample((10,))
outputs = simulator(inputs, experimental_designs)
✔️ Supports experimental design
from hypothesis.benchmark.sir import Simulator
from hypothesis.benchmark.sir import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
from hypothesis.benchmark.sir import PriorExperiment # Experimental design space
prior_experiment = PriorExperiment()
experimental_designs = prior_experiment.sample((10,))
outputs = simulator(inputs, experimental_designs)
✔️ Supports experimental design
from hypothesis.benchmark.spatialsir import Simulator
from hypothesis.benchmark.spatialsir import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
from hypothesis.benchmark.spatialsir import PriorExperiment # Experimental design space
prior_experiment = PriorExperiment()
experimental_designs = prior_experiment.sample((10,))
outputs = simulator(inputs, experimental_designs)
from hypothesis.benchmark.tractable import Simulator
from hypothesis.benchmark.tractable import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
✔️ Supports experimental design
from hypothesis.benchmark.weinberg import Simulator
from hypothesis.benchmark.weinberg import Prior
simulator = Simulator()
prior = Prior()
inputs = prior.sample((10,)) # Draw 10 samples from the prior.
outputs = simulator(inputs)
from hypothesis.benchmark.weinberg import PriorExperiment # Experimental design space
prior_experiment = PriorExperiment()
experimental_designs = prior_experiment.sample((10,))
outputs = simulator(inputs, experimental_designs)
Hypothesis is BSD-style licensed, as found in the LICENSE file.