causally.scm.causal_mechanism.InvertibleFunction

class causally.scm.causal_mechanism.InvertibleFunction(function: Callable)

Base class for defining invertible functions for the post-nonlinear model.

This class can be used to define the invertible transformation for the structural equations of a PostNonlinear model. In order to instantiate an InvertibleFunction, simply provide the desired transformation as a Python Callable.

Parameters:

function (Callable) – Function implementing an invertible map.

Methods

forward(input)

Apply the invertible map to the input.