How do transformations work?

Can anyone provide an intuitive explanation for how PyMC3 transformations actually work? For instance, when do the backward and forward methods get called? I’m just trying to understand how they work generally.

There are a bit of information here if you search Transform: https://docs.pymc.io/developer_guide.html

Specifically, backward is used here: https://github.com/pymc-devs/pymc3/blob/54c6d067ecffb350bcf785ba154e7c96a5a7e75a/pymc3/distributions/transforms.py#L197

1 Like