tf.contrib.distributions.DirichletMultinomial.prob()

tf.contrib.distributions.DirichletMultinomial.prob(value, name='prob')

Probability density/mass function (depending on is_continuous).

Additional documentation from DirichletMultinomial:

For each batch of counts [n_1,...,n_k], P[counts] is the probability that after sampling n draws from this Dirichlet Multinomial distribution, the number of draws falling in class j is n_j. Note that different sequences of draws can result in the same counts, thus the probability includes a combinatorial coefficient.

Note that input, "counts", must be a non-negative tensor with dtype dtype and whose shape can be broadcast with self.alpha. For fixed leading dimensions, the last dimension represents counts for the corresponding Dirichlet Multinomial distribution in self.alpha. counts is only legal if it sums up to n and its components are equal to integer values.

Args:
  • value: float or double Tensor.
  • name: The name to give this op.
Returns:
  • prob: a Tensor of shape sample_shape(x) + self.batch_shape with values of type self.dtype.
doc_TensorFlow
2016-10-14 12:50:50
Comments
Leave a Comment

Please login to continue.