tf.contrib.distributions.Binomial.prob()

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

Probability density/mass function (depending on is_continuous).

Additional documentation from Binomial:

For each batch member of counts value, P[counts] is the probability that after sampling n draws from this Binomial distribution, the number of successes is k. Note that different sequences of draws can result in the same counts, thus the probability includes a combinatorial coefficient.

value must be a non-negative tensor with dtype dtype and whose shape can be broadcast with self.p and self.n. counts is only legal if it is less than or equal 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:47:51
Comments
Leave a Comment

Please login to continue.