TensorFlow 2.0 Beta is available Learn more

tfp.edward2.TransformedDistribution

Create a random variable for TransformedDistribution.

tfp.edward2.TransformedDistribution(
    *args,
    **kwargs
)

Defined in python/edward2/interceptor.py.

See TransformedDistribution for more details.

Returns:

RandomVariable.

Original Docstring for Distribution

Construct a Transformed Distribution.

Args:

  • distribution: The base distribution instance to transform. Typically an instance of Distribution.
  • bijector: The object responsible for calculating the transformation. Typically an instance of Bijector.
  • batch_shape: integer vector Tensor which overrides distribution batch_shape; valid only if distribution.is_scalar_batch().
  • event_shape: integer vector Tensor which overrides distribution event_shape; valid only if distribution.is_scalar_event().
  • kwargs_split_fn: Python callable which takes a kwargs dict and returns a tuple of kwargs dicts for each of the distribution and bijector parameters respectively. Default value: _default_kwargs_split_fn (i.e., lambda kwargs: (kwargs.get('distribution_kwargs', {}), kwargs.get('bijector_kwargs', {})))
  • validate_args: Python bool, default False. When True distribution parameters are checked for validity despite possibly degrading runtime performance. When False invalid inputs may silently render incorrect outputs.
  • parameters: Locals dict captured by subclass constructor, to be used for copy/slice re-instantiation operations.
  • name: Python str name prefixed to Ops created by this class. Default: bijector.name + distribution.name.