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

tfb_ordered

Bijector which maps a tensor x_k that has increasing elements in the last dimension to an unconstrained tensor y_k


Description

Both the domain and the codomain of the mapping is [-inf, inf], however, the input of the forward mapping must be strictly increasing. The inverse of the bijector applied to a normal random vector y ~ N(0, 1) gives back a sorted random vector with the same distribution x ~ N(0, 1) where x = sort(y)

Usage

tfb_ordered(validate_args = FALSE, name = "ordered")

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.

name

name prefixed to Ops created by this class.

Details

On the last dimension of the tensor, Ordered bijector performs: y[0] = x[0] y[1:] = tf$log(x[1:] - x[:-1])

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.