aeppl.transforms.TransformValuesRewrite#

class aeppl.transforms.TransformValuesRewrite(rvs_to_transforms)[source]#

Transforms value variables according to a map and/or per-RandomVariable defaults.

Parameters

rvs_to_transforms (Dict[TensorVariable, Union[RVTransform, DefaultTransformSentinel, None]]) –

Methods

TransformValuesRewrite.__init__(...)

param values_to_transforms

Mapping between random variables and their transformations. Each

TransformValuesRewrite.add_requirements(...)

Add Features and other requirements to a FunctionGraph.

TransformValuesRewrite.apply(fgraph)

Apply the rewriter to a FunctionGraph.

TransformValuesRewrite.optimize(*args, **kwargs)

TransformValuesRewrite.print_profile(stream, ...)

TransformValuesRewrite.print_summary([...])

Print a single-line, indented representation of the rewriter.

TransformValuesRewrite.rewrite(fgraph, ...)

This is meant as a shortcut for the following.

Attributes

default_transform_rewrite(fgraph)

name