pymc-examples icon indicating copy to clipboard operation
pymc-examples copied to clipboard

Counterfactual generation using pymc do-operator example notebook

Open shekharkhandelwal1983 opened this issue 1 year ago • 4 comments

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/

shekharkhandelwal1983 avatar Aug 25 '23 09:08 shekharkhandelwal1983

Check out this pull request on  ReviewNB

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

drbenvincent avatar Aug 26 '23 16:08 drbenvincent

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.

twiecki avatar Aug 28 '23 20:08 twiecki

@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!

twiecki avatar Sep 08 '23 13:09 twiecki