tfp.edward2.WishartLinearOperator

View source on GitHub

Create a random variable for WishartLinearOperator.

See WishartLinearOperator for more details.

RandomVariable.

Original Docstring for Distribution

Construct Wishart distributions.

df float or double tensor, the degrees of freedom of the distribution(s). df must be greater than or equal to k.
scale float or double instance of LinearOperator.
input_output_cholesky Python bool. If True, functions whose input or output have the semantics of samples assume inputs are in Cholesky form and return outputs in Cholesky form. In particular, if this flag is True, input to log_prob is presumed of Cholesky form and output from sample, mean, and mode are of Cholesky form. Setting this argument to True is purely a computational optimization and does not change the underlying distribution; for instance, mean returns the Cholesky of the mean, not the mean of Cholesky factors. The variance and stddev methods are unaffected by this flag. Default value: False (i.e., input/output does not have Cholesky semantics).
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.

TypeError if scale is not floating-type
TypeError if scale.dtype != df.dtype
ValueError if df < k, where scale operator event shape is (k, k)