The Logit-Normal distribution models positive-valued random variables whose
logit (i.e., sigmoid_inverse, i.e., log(p) - log1p(-p)
) is normally
distributed with mean loc
and standard deviation scale
. It is
constructed as the sigmoid transformation, (i.e., 1 / (1 + exp(-x))
) of a
Normal distribution.
tfd_logit_normal(
loc,
scale,
validate_args = FALSE,
allow_nan_stats = TRUE,
name = "LogitNormal"
)
a distribution instance.
Floating point tensor; the means of the distribution(s).
loating point tensor; the stddevs of the distribution(s). Must contain only positive values.
Logical, default FALSE. When TRUE distribution parameters are checked for validity despite possibly degrading runtime performance. When FALSE invalid inputs may silently render incorrect outputs. Default value: FALSE.
Logical, default TRUE. When TRUE, statistics (e.g., mean, mode, variance) use the value NaN to indicate the result is undefined. When FALSE, an exception is raised if one or more of the statistic's batch members are undefined.
name prefixed to Ops created by this class.
For usage examples see e.g. tfd_sample()
, tfd_log_prob()
, tfd_mean()
.