tfp.edward2.TruncatedNormal

View source on GitHub

Create a random variable for TruncatedNormal.

See TruncatedNormal for more details.

RandomVariable.

Original Docstring for Distribution

Construct TruncatedNormal.

All parameters of the distribution will be broadcast to the same shape, so the resulting distribution will have a batch_shape of the broadcast shape of all parameters.

loc Floating point tensor; the mean of the normal distribution(s) ( note that the mean of the resulting distribution will be different since it is modified by the bounds).
scale Floating point tensor; the std deviation of the normal distribution(s).
low float Tensor representing lower bound of the distribution's support. Must be such that low < high.
high float Tensor representing upper bound of the distribution's support. Must be such that low < high.
validate_args Python bool, default False. When True distribution parameters are checked at run-time.
allow_nan_stats Python bool, 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 Python str name prefixed to Ops created by this class.