-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding causal prediction code using CACM with demo notebook #729
Conversation
Signed-off-by: jivatneet <jivatneet@gmail.com>
Signed-off-by: jivatneet <jivatneet@gmail.com>
8a7a81a
to
d11c5c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start for the prediction functionality @jivatneet I have added inline comments. Main feedback is on adding documentation: both in the notebook and inline docstrings.
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
Signed-off-by: jivatneet <jivatneet@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these edits, @jivatneet. It's very close to a first merge! I've added a few comments.
Let me also tag Emre as a reviewer.
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
docs/source/example_notebooks/dowhy_causal_prediction_demo.ipynb
Outdated
Show resolved
Hide resolved
Signed-off-by: jivatneet <jivatneet@gmail.com>
Signed-off-by: jivatneet <jivatneet@gmail.com>
Signed-off-by: jivatneet <jivatneet@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as a first commit for the prediction API.
Signed-off-by: jivatneet <jivatneet@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I forgot to publish this review before, sorry
Signed-off-by: jivatneet <jivatneet@gmail.com>
Signed-off-by: jivatneet <jivatneet@gmail.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
… notebook (py-why#729) * add causal prediction using cacm + demo notebook Signed-off-by: jivatneet <jivatneet@gmail.com> * Adding causal prediction code using CACM with demo notebook Signed-off-by: jivatneet <jivatneet@gmail.com> * addressing comments: fixing documentation in base_algorithm and cacm Signed-off-by: jivatneet <jivatneet@gmail.com> * addressing comments: fixing documentation in base_dataset Signed-off-by: jivatneet <jivatneet@gmail.com> * rename Algorithm class Signed-off-by: jivatneet <jivatneet@gmail.com> * updating base_dataset for format check Signed-off-by: jivatneet <jivatneet@gmail.com> * adding exception for optimizer; resolving list bug Signed-off-by: jivatneet <jivatneet@gmail.com> * adding docs for base algo Signed-off-by: jivatneet <jivatneet@gmail.com> * added torch to dev dependency * added torchlightning to dev dependency Signed-off-by: Amit Sharma <amit_sharma@live.com> * updated poetry.lock Signed-off-by: Amit Sharma <amit_sharma@live.com> * updated gpu to devices Signed-off-by: Amit Sharma <amit_sharma@live.com> Signed-off-by: jivatneet <jivatneet@gmail.com> Signed-off-by: Amit Sharma <amit_sharma@live.com> Co-authored-by: Amit Sharma <amit_sharma@live.com>
Adding causal prediction API code and demo using Causally Adaptive Constraint Minimization (CACM).
I was facing issues in ensuring torch compatibility with poetry. Mentioning the exact dependencies here: