tfb_forward_log_det_jacobian: Returns the result of the forward evaluation of the log...

View source: R/bijector-methods.R

tfb_forward_log_det_jacobianR Documentation

Returns the result of the forward evaluation of the log determinant of the Jacobian

Description

Returns the result of the forward evaluation of the log determinant of the Jacobian

Usage

tfb_forward_log_det_jacobian(
  bijector,
  x,
  event_ndims,
  name = "forward_log_det_jacobian"
)

Arguments

bijector

The bijector to apply

x

Tensor. The input to the "forward" Jacobian determinant evaluation.

event_ndims

Number of dimensions in the probabilistic events being transformed. Must be greater than or equal to bijector$forward_min_event_ndims. The result is summed over the final dimensions to produce a scalar Jacobian determinant for each event, i.e. it has shape x$shape$ndims - event_ndims dimensions.

name

name of the operation

Value

a tensor

See Also

Other bijector_methods: tfb_forward(), tfb_inverse_log_det_jacobian(), tfb_inverse()

Examples


  b <- tfb_affine_scalar(shift = 1, scale = 2)
  x <- 10
  b %>% tfb_forward_log_det_jacobian(x, event_ndims = 0)


tfprobability documentation built on Sept. 1, 2022, 5:07 p.m.