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

tfb_affine_scalar

AffineScalar bijector


Description

This Bijector is initialized with shift Tensor and scale arguments, giving the forward operation: Y = g(X) = scale * X + shift If scale is not specified, then the bijector has the semantics of scale = 1.. Similarly, if shift is not specified, then the bijector has the semantics of shift = 0..

Usage

tfb_affine_scalar(
  shift = NULL,
  scale = NULL,
  validate_args = FALSE,
  name = "affine_scalar"
)

Arguments

shift

Floating-point Tensor. If this is set to NULL, no shift is applied.

scale

Floating-point Tensor. If this is set to NULL, no scale is applied.

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.

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.