tf.contrib.distributions.Laplace.get_event_shape()

tf.contrib.distributions.Laplace.get_event_shape() Shape of a single sample from a single batch as a TensorShape. Same meaning as event_shape. May be only partially defined. Returns: event_shape: TensorShape, possibly unknown.

tf.contrib.distributions.Laplace.get_batch_shape()

tf.contrib.distributions.Laplace.get_batch_shape() Shape of a single sample from a single event index as a TensorShape. Same meaning as batch_shape. May be only partially defined. Returns: batch_shape: TensorShape, possibly unknown.

tf.contrib.distributions.Laplace.event_shape()

tf.contrib.distributions.Laplace.event_shape(name='event_shape') Shape of a single sample from a single batch as a 1-D int32 Tensor. Args: name: name to give to the op Returns: event_shape: Tensor.

tf.contrib.distributions.Laplace.entropy()

tf.contrib.distributions.Laplace.entropy(name='entropy') Shanon entropy in nats.

tf.contrib.distributions.Laplace.dtype

tf.contrib.distributions.Laplace.dtype The DType of Tensors handled by this Distribution.

tf.contrib.distributions.Laplace.cdf()

tf.contrib.distributions.Laplace.cdf(value, name='cdf') Cumulative distribution function. Given random variable X, the cumulative distribution function cdf is: cdf(x) := P[X <= x] Args: value: float or double Tensor. name: The name to give this op. Returns: cdf: a Tensor of shape sample_shape(x) + self.batch_shape with values of type self.dtype.

tf.contrib.distributions.Laplace.batch_shape()

tf.contrib.distributions.Laplace.batch_shape(name='batch_shape') Shape of a single sample from a single event index as a 1-D Tensor. The product of the dimensions of the batch_shape is the number of independent distributions of this kind the instance represents. Args: name: name to give to the op Returns: batch_shape: Tensor.

tf.contrib.distributions.Laplace.allow_nan_stats

tf.contrib.distributions.Laplace.allow_nan_stats Python boolean describing behavior when a stat is undefined. Stats return +/- infinity when it makes sense. E.g., the variance of a Cauchy distribution is infinity. However, sometimes the statistic is undefined, e.g., if a distribution's pdf does not achieve a maximum within the support of the distribution, the mode is undefined. If the mean is undefined, then by definition the variance is undefined. E.g. the mean for Student's T for df = 1 is u

tf.contrib.distributions.kl()

tf.contrib.distributions.kl(dist_a, dist_b, allow_nan=False, name=None) Get the KL-divergence KL(dist_a || dist_b). Args: dist_a: The first distribution. dist_b: The second distribution. allow_nan: If False (default), a runtime error is raised if the KL returns NaN values for any batch entry of the given distributions. If True, the KL may return a NaN for the given entry. name: (optional) Name scope to use for created operations. Returns: A Tensor with the batchwise KL-divergence between

tf.contrib.distributions.Laplace

class tf.contrib.distributions.Laplace The Laplace distribution with location and scale > 0 parameters.