Skip to content

ENH: Improve debug docs and function helpers #6841

Open
@twiecki

Description

@twiecki

Before

x = pm.Normal("x")
x_print = Print("x")(x)

After

x = pm.Normal("x", debug=True)

Context for the issue:

On https://www.pymc.io/projects/examples/en/latest/howto/howto_debugging.html we show how pytensor.printing.Print can be used to debug-print RVs which is helpful for debugging model issues. This could be done with nicer API if we add a debug kwarg that would wrap the RV internally with a Print Op.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions