You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In classical causal inference theory, interventions are defined as replacements of constant values with constant values, but many advanced causal queries can be understood as arising from a richer notion of intervention, e.g. replacing one mechanism with another or replacing a value with a distribution.
Fortunately, most of these interventions are fully compatible in principle with the broadcasting-based counterfactual semantics of this library, and queries that make use of richer interventions can therefore be answered with Pyro's existing inference tools.
All that is necessary to implement this support is to extend the definition of the existing intervene primitive and the MultiWorldCounterfactual effect handler to new input and output types.
In classical causal inference theory, interventions are defined as replacements of constant values with constant values, but many advanced causal queries can be understood as arising from a richer notion of intervention, e.g. replacing one mechanism with another or replacing a value with a distribution.
Fortunately, most of these interventions are fully compatible in principle with the broadcasting-based counterfactual semantics of this library, and queries that make use of richer interventions can therefore be answered with Pyro's existing inference tools.
All that is necessary to implement this support is to extend the definition of the existing
intervene
primitive and theMultiWorldCounterfactual
effect handler to new input and output types.Intervention types:
torch.Tensor
ornumbers.Number
typing.Callable[[T], Intervention[T]]
typing.Callable[[T], T]
orpyro.nn.PyroModule
typing.Tuple[T, ...]
pyro.distributions.TorchDistribution
orpyro.nn.PyroSample
pyro.nn.PyroParam
The text was updated successfully, but these errors were encountered: