sbi.inference.mixed_likelihood_estimator_based_potential

sbi.inference.mixed_likelihood_estimator_based_potential#

mixed_likelihood_estimator_based_potential(likelihood_estimator, prior, x_o)[source]#

Returns \(\log(p(x_o|\theta)p(\theta))\) for mixed likelihood-based methods.

It also returns a transformation that can be used to transform the potential into unconstrained space.

Parameters:
  • likelihood_estimator (MixedDensityEstimator) – The neural network modelling the likelihood.

  • prior (Distribution) – The prior distribution.

  • x_o (Tensor | None) – The observed data at which to evaluate the likelihood.

Returns:

The potential function \(p(x_o|\theta)p(\theta)\) and a transformation that maps to unconstrained space.

Return type:

Tuple[Callable, Transform]