Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tfb_inline

Bijector constructed from custom functions


Description

Bijector constructed from custom functions

Usage

tfb_inline(
  forward_fn = NULL,
  inverse_fn = NULL,
  inverse_log_det_jacobian_fn = NULL,
  forward_log_det_jacobian_fn = NULL,
  forward_event_shape_fn = NULL,
  forward_event_shape_tensor_fn = NULL,
  inverse_event_shape_fn = NULL,
  inverse_event_shape_tensor_fn = NULL,
  is_constant_jacobian = NULL,
  validate_args = FALSE,
  forward_min_event_ndims = NULL,
  inverse_min_event_ndims = NULL,
  name = "inline"
)

Arguments

forward_fn

Function implementing the forward transformation.

inverse_fn

Function implementing the inverse transformation.

inverse_log_det_jacobian_fn

Function implementing the log_det_jacobian of the forward transformation.

forward_log_det_jacobian_fn

Function implementing the log_det_jacobian of the inverse transformation.

forward_event_shape_fn

Function implementing non-identical static event shape changes. Default: shape is assumed unchanged.

forward_event_shape_tensor_fn

Function implementing non-identical event shape changes. Default: shape is assumed unchanged.

inverse_event_shape_fn

Function implementing non-identical static event shape changes. Default: shape is assumed unchanged.

inverse_event_shape_tensor_fn

Function implementing non-identical event shape changes. Default: shape is assumed unchanged.

is_constant_jacobian

Logical indicating that the Jacobian is constant for all input arguments.

validate_args

Logical, default FALSE. Whether to validate input with asserts. If validate_args is FALSE, and the inputs are invalid, correct behavior is not guaranteed.

forward_min_event_ndims

Integer indicating the minimal dimensionality this bijector acts on.

inverse_min_event_ndims

Integer indicating the minimal dimensionality this bijector acts on.

name

name prefixed to Ops created by this class.

Value

a bijector instance.

See Also


tfprobability

Interface to 'TensorFlow Probability'

v0.11.0.0
Apache License (>= 2.0)
Authors
Sigrid Keydana [aut, cre], Daniel Falbel [ctb], Kevin Kuo [ctb] (<https://orcid.org/0000-0001-7803-7901>), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.