tf.contrib.distributions.DirichletMultinomial.variance()

tf.contrib.distributions.DirichletMultinomial.variance(name='variance')

Variance.

Additional documentation from DirichletMultinomial:

The variance for each batch member is defined as the following:

Var(X_j) = n * alpha_j / alpha_0 * (1 - alpha_j / alpha_0) *
(n + alpha_0) / (1 + alpha_0)

where alpha_0 = sum_j alpha_j.

The covariance between elements in a batch is defined as:

Cov(X_i, X_j) = -n * alpha_i * alpha_j / alpha_0 ** 2 *
(n + alpha_0) / (1 + alpha_0)
doc_TensorFlow
2016-10-14 12:50:56
Comments
Leave a Comment

Please login to continue.