ElementwiseTransform#

class bayesflow.adapters.transforms.ElementwiseTransform[source]#

Bases: object

Base class on which other transforms are based

has_permutation_jacobian: ClassVar[bool] = False#

Whether the transform only moves values around, i.e., has a permutation Jacobian.

__call__(data: Tensor, inverse: bool = False, **kwargs) → Tensor[source]#

Call self as a function.

classmethod from_config(config: dict, custom_objects=None)[source]#
get_config() → dict[source]#
forward(data: Tensor, **kwargs) → Tensor[source]#
inverse(data: Tensor, **kwargs) → Tensor[source]#
log_det_jac(data: Tensor, inverse: bool = False, **kwargs) → Tensor | None[source]#