TensorFlow 2.0 Beta is available Learn more

tfp.edward2.VonMises

Create a random variable for VonMises.

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

Defined in python/edward2/interceptor.py.

See VonMises for more details.

Returns:

RandomVariable.

Original Docstring for Distribution

Construct von Mises distributions with given location and concentration.

The parameters loc and concentration must be shaped in a way that supports broadcasting (e.g. loc + concentration is a valid operation).

Args:

  • loc: Floating point tensor, the circular means of the distribution(s).
  • concentration: Floating point tensor, the level of concentration of the distribution(s) around loc. Must take non-negative values. concentration = 0 defines a Uniform distribution, while concentration = +inf indicates a Deterministic distribution at loc.
  • 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:

  • TypeError: if loc and concentration are different dtypes.