tfp.edward2.Uniform

View source on GitHub

Create a random variable for Uniform.

Aliases:

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

See Uniform for more details.

Returns:

RandomVariable.

Original Docstring for Distribution

Initialize a batch of Uniform distributions.

Args:

  • low: Floating point tensor, lower boundary of the output interval. Must have low < high.
  • high: Floating point tensor, upper boundary of the output interval. Must have low < high.
  • validate_args: Python bool, default False. When True distribution parameters are checked for validity despite possibly degrading runtime performance. When False invalid inputs may silently render incorrect outputs.
  • 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.

Raises:

  • InvalidArgumentError: if low >= high and validate_args=False.