Learn R Programming

tfprobability (version 0.15.1)

tfb_inverse: Returns the inverse Bijector evaluation, i.e., X = g^{-1}(Y).

Description

Returns the inverse Bijector evaluation, i.e., X = g^{-1}(Y).

Usage

tfb_inverse(bijector, y, name = "inverse")

Value

a tensor

Arguments

bijector

The bijector to apply

y

Tensor. The input to the "inverse" evaluation.

name

name of the operation

See Also

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

Examples

Run this code
# \donttest{
  b <- tfb_affine_scalar(shift = 1, scale = 2)
  x <- 10
  y <- b %>% tfb_forward(x)
  b %>% tfb_inverse(y)
# }

Run the code above in your browser using DataLab