pymc-examples
pymc-examples copied to clipboard
Counterfactual generation using pymc do-operator example notebook
This notebook provides a detailed steps required to generate counterfactuals, and demonstrates the newly introduced do-operator capabilities. And how it can be used to achieve Causality.
- Issue id - #568
- [x] Notebook follows style guide https://docs.pymc.io/en/latest/contributing/jupyter_style.html
- [x] PR description contains a link to the relevant issue:
- a tracker one for existing notebooks (tracker issues have the "tracker id" label)
- or a proposal one for new notebooks
- [x] Check the notebook is not excluded from any pre-commit check: https://github.com/pymc-devs/pymc-examples/blob/main/.pre-commit-config.yaml
Helpful links
- https://github.com/pymc-devs/pymc-examples/blob/main/CONTRIBUTING.md
:books: Documentation preview :books:: https://pymc-examples--569.org.readthedocs.build/en/569/
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Might overlap with #554 which I'm working on with @juanitorduz. Not necessarily the end of the world though - there's a clear opportunity for stuff on this topic. Would like to review this - but just became a father (yesterday!) so there might be a minor delay
What I really like about this NB is how it lays out the new workflow with creating the skeleton model first. Maybe that should be the focus.
@shekharkhandelwal1983 Can you update the NB to focus on the new workflow? Mainly I think the title needs to be changed and some of the narrative. Also, since pymc 5.8.0 the do and observe functions are now in pymc!