-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is Your Feature Request Related to a Problem? Please Describe
Currently we do not have any examples demonstrating how to use the effect_handlers attribute of causalprog.causal_problem.CausalEstimand and causalprog.causal_problem.Constraint.
When first reading the codebase, I had assumed that the effect_handlers attribute was added for numpyro.handlers such as do or condition, and then become confused by the presence of algorithms.do and algorithms.condition.
In a meeting on 25/09/2025, @willGraham01 mentioned the need for algorithms.do and algorithms.condition due to limitations using numpyro.handlers for the effect_handlers.
We would benefit from making it clearer why effect_handlers exist and how they differ from algorithms.do and algorithms.condition and what the limitation with the handlers is.
Describe the Solution You'd Like
Clarify in documentation or example notebook:
- Why
effect_handlersexist, - How they differ from
algorithms.do/algorithms.condition, - What limitations in NumPyro’s effect handlers led to requiring the algorithms layer.
Describe Alternatives You've Considered
No response
Additional Context
No response