Inverse

class pmrf.stats.Inverse(bijector: AbstractBijector)

Bases: AbstractFwdLogDetJacBijector, AbstractInvLogDetJacBijector

Inverted version of a given bijector.

forward(x: PyTree) → PyTree

Computes y = f(x).

forward_and_log_det(x: PyTree) → tuple[PyTree, PyTree]

Computes y = f(x) and log|det J(f)(x)|.

inverse(y: PyTree) → PyTree

Computes x = f^{-1}(y).

inverse_and_log_det(y: PyTree) → tuple[PyTree, PyTree]

Computes x = f^{-1}(y) and log|det J(f^{-1})(y)|.

same_as(other: AbstractBijector) → bool

Returns True if this bijector is guaranteed to be the same as other.

bijector: AbstractBijector