tf.contrib.distributions.QuantizedDistribution.survival_function()

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

Survival function.

Given random variable X, the survival function is defined:

survival_function(x) = P[X > x]
                     = 1 - P[X <= x]
                     = 1 - cdf(x).

Additional documentation from QuantizedDistribution:

For whole numbers y,

survival_function(y) := P[Y > y]
                      = 0, if y >= upper_cutoff,
                      = 1, if y < lower_cutoff,
                      = P[X <= y], otherwise.

Since Y only has mass at whole numbers, P[Y <= y] = P[Y <= floor(y)]. This dictates that fractional y are first floored to a whole number, and then above definition applies.

The base distribution's cdf method must be defined on y - 1.

Args:
  • value: float or double Tensor.
  • name: The name to give this op.
Returns:

Tensorof shapesample_shape(x) + self.batch_shapewith values of typeself.dtype`.

doc_TensorFlow
2016-10-14 13:01:41
Comments
Leave a Comment

Please login to continue.