Missed TensorFlow World? Check out the recap. Learn more

tfp.edward2.HalfCauchy

View source on GitHub

Create a random variable for HalfCauchy.

Aliases:

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

See HalfCauchy for more details.

Returns:

RandomVariable.

Original Docstring for Distribution

Construct a half-Cauchy distribution with loc and scale.

Args:

  • loc: Floating-point Tensor; the location(s) of the distribution(s).
  • scale: Floating-point Tensor; the scale(s) of the distribution(s). Must contain only positive values.
  • 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. Default value: False (i.e. do not validate args).
  • 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. Default value: True.
  • name: Python str name prefixed to Ops created by this class. Default value: 'HalfCauchy'.

Raises:

  • TypeError: if loc and scale have different dtype.