aeppl.printing.RandomVariablePrinter#

class aeppl.printing.RandomVariablePrinter(name=None)[source]#

Pretty print random variables.

Ops are able to specify their ascii and LaTeX formats via a “print_name” property. Op.print_name should be a tuple or list that specifies the plain text/ascii and LaTeX name, respectively.

Also, distribution parameters can be formatted distinctly by overriding the RandomVariablePrinter.process_param method.

Parameters

name (Optional[str]) –

Methods

RandomVariablePrinter.__init__([name])

Create a RandomVariablePrinter.

RandomVariablePrinter.process(output, pstate)

param pstate

RandomVariablePrinter.process_param(idx, ...)

Perform special per-parameter post-formatting.