tfp.distributions.TransformedDistribution | TensorFlow ...
www.tensorflow.org › probability › api_docsJan 05, 2022 · tfd = tfp.distributions tfb = tfp.bijectors normal = tfd.TransformedDistribution( distribution=tfd.Normal(loc=0., scale=1.), bijector=tfb.Shift(shift=-1.)(tfb.Scale(scale=2.)), name='NormalTransformedDistribution') A TransformedDistribution's batch_shape is derived by broadcasting the batch shapes of the base distribution and the bijector. The base distribution is then itself implicitly lifted to the broadcast batch shape.
[1711.10604] TensorFlow Distributions - arxiv.org
arxiv.org › abs › 1711Nov 28, 2017 · Abstract:The TensorFlow Distributions library implements a vision of probabilitytheory adapted to the modern deep-learning paradigm of end-to-enddifferentiable computation. Building on two basic abstractions, it offersflexible building blocks for probabilistic computation. Distributions providefast, numerically stable methods for generating samples and computingstatistics, e.g., log density.
tfp.distributions.Beta | TensorFlow Probability
https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/Beta18.11.2021 · import tensorflow_probability as tfp tfd = tfp.distributions # Create a batch of three Beta distributions. alpha = [1, 2, 3] beta = [1, 2, 3] dist = tfd.Beta(alpha, beta) dist.sample([4, 5]) # Shape [4, 5, 3] # `x` has three batch entries, each with two samples. x = [[.1, .4, .5], [.2, .3, .5]] # Calculate the probability of each pair of samples under the corresponding # distribution in `dist ...
TensorFlow Distributions | Papers With Code
paperswithcode.com › paper › tensorflow-distributionsNov 28, 2017 · The TensorFlow Distributions library implements a vision of probability theory adapted to the modern deep-learning paradigm of end-to-end differentiable computation. Building on two basic abstractions, it offers flexible building blocks for probabilistic computation. .. Distributions provide fast, numerically stable methods for generating samples and computing statistics, e.g., log density.