tf.contrib.distributions.QuantizedDistribution.prob()

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

Probability density/mass function (depending on is_continuous).

Additional documentation from QuantizedDistribution:

For whole numbers y,

P[Y = y] := P[X <= lower_cutoff],  if y == lower_cutoff,
         := P[X > upper_cutoff - 1],  y == upper_cutoff,
         := 0, if j < lower_cutoff or y > upper_cutoff,
         := P[y - 1 < X <= y],  all other y.

The base distribution's cdf method must be defined on y - 1. If the base distribution has a survival_function method, results will be more accurate for large values of y, and in this case the survival_function must also be defined on y - 1.

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 13:01:37
Comments
Leave a Comment

Please login to continue.