tf.contrib.distributions.MultivariateNormalDiag.__init__(mu, diag_stdev, validate_args=False, allow_nan_stats=True, name='MultivariateNormalDiag')
Multivariate Normal distributions on R^k
.
User must provide means mu
and standard deviations diag_stdev
. Each batch member represents a random vector (X_1,...,X_k)
of independent random normals. The mean of X_i
is mu[i]
, and the standard deviation is diag_stdev[i]
.
Args:
-
mu
: RankN + 1
floating point tensor with shape[N1,...,Nb, k]
,b >= 0
. -
diag_stdev
: RankN + 1
Tensor
with samedtype
and shape asmu
, representing the standard deviations. Must be positive. -
validate_args
:Boolean
, defaultFalse
. Whether to validate input with asserts. Ifvalidate_args
isFalse
, and the inputs are invalid, correct behavior is not guaranteed. -
allow_nan_stats
:Boolean
, defaultTrue
. IfFalse
, raise an exception if a statistic (e.g. mean/mode/etc...) is undefined for any batch member IfTrue
, batch members with valid parameters leading to undefined statistics will return NaN for this statistic. -
name
: The name to give Ops created by the initializer.
Raises:
-
TypeError
: Ifmu
anddiag_stdev
are different dtypes.
Please login to continue.