Prior and simulator

Prior and simulator#

sbi.utils.BoxUniform

Uniform distribution in multiple dimensions.

sbi.utils.MultipleIndependent

Wrap a sequence of PyTorch distributions into a joint PyTorch distribution.

sbi.utils.process_prior

Return PyTorch distribution-like prior from user-provided prior.

sbi.utils.process_simulator

Returns a simulator that meets the requirements for usage in sbi.

sbi.utils.RestrictedPrior

Distribution that restricts the prior distribution to a smaller region.

sbi.utils.RestrictionEstimator

Classifier to estimate regions of the prior that give good simulation results.

sbi.inference.simulate_for_sbi

Returns pairs \((\theta, x)\) by sampling proposal and running simulations.