tf.contrib.bayesflow.stochastic_tensor.BaseStochasticTensor.loss()

tf.contrib.bayesflow.stochastic_tensor.BaseStochasticTensor.loss(sample_loss) Returns the term to add to the surrogate loss. This method is called by surrogate_loss. The input sample_loss should have already had stop_gradient applied to it. This is because the surrogate_loss usually provides a Monte Carlo sample term of the form differentiable_surrogate * sample_loss where sample_loss is considered constant with respect to the input for purposes of the gradient. Args: sample_loss: Tensor, sam

tf.contrib.bayesflow.stochastic_tensor.Chi2Tensor.loss()

tf.contrib.bayesflow.stochastic_tensor.Chi2Tensor.loss(final_loss, name='Loss')

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.cdf()

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.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.MultivariateNormalFull.name

tf.contrib.distributions.MultivariateNormalFull.name Name prepended to all ops created by this Distribution.

tf.contrib.distributions.Exponential.log_survival_function()

tf.contrib.distributions.Exponential.log_survival_function(value, name='log_survival_function') Log survival function. Given random variable X, the survival function is defined: log_survival_function(x) = Log[ P[X > x] ] = Log[ 1 - P[X <= x] ] = Log[ 1 - cdf(x) ] Typically, different numerical approximations can be used for the log survival function, which are more accurate than 1 - cdf(x) when x >> 1. Args: value: float or double

tf.test.is_built_with_cuda()

tf.test.is_built_with_cuda() Returns whether TensorFlow was built with CUDA (GPU) support.

tf.contrib.metrics.streaming_mean_relative_error()

tf.contrib.metrics.streaming_mean_relative_error(predictions, labels, normalizer, weights=None, metrics_collections=None, updates_collections=None, name=None) Computes the mean relative error by normalizing with the given values. The streaming_mean_relative_error function creates two local variables, total and count that are used to compute the mean relative absolute error. This average is weighted by weights, and it is ultimately returned as mean_relative_error: an idempotent operation that s

tf.contrib.distributions.Dirichlet

class tf.contrib.distributions.Dirichlet Dirichlet distribution. This distribution is parameterized by a vector alpha of concentration parameters for k classes.

tf.contrib.bayesflow.stochastic_tensor.TransformedDistributionTensor.distribution

tf.contrib.bayesflow.stochastic_tensor.TransformedDistributionTensor.distribution

tf.test.get_temp_dir()

tf.test.get_temp_dir() Returns a temporary directory for use during tests. There is no need to delete the directory after the test. Returns: The temporary directory.