Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfp.edward2.TruncatedNormal

Create a random variable for TruncatedNormal.

tfp.edward2.TruncatedNormal(
    *args,
    **kwargs
)

Defined in python/edward2/interceptor.py.

See TruncatedNormal for more details.

Returns:

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.

Args:

  • 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.