8000 Add accessor and comments about CausalModel's CausalEstimator cache. by drawlinson · Pull Request #1113 · py-why/dowhy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add accessor and comments about CausalModel's CausalEstimator cache. #1113

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

Conversation

drawlinson
Copy link
Contributor

Add an accessor and comments explaining the expected lifecycle and use of CausalEstimator objects stored in the CausalModel._estimator_cache dict. Accessor function gains test coverage and slightly simplifies logic via use in CausalModel.estimate_effect().

See issue #1071

…e of CausalEstimator objects stored in the CausalModel._estimator_cache dict. Accessor function gains test coverage and slightly simplifies logic via use in CausalModel.estimate_effect().

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
@bloebp
Copy link
Member
bloebp commented Dec 11, 2023

Also thanks for opening PR for this! Similar as for the one-hot-encoding, can you add a unit test for this?

…mator, both CausalEstimator object references.

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
@drawlinson
Copy link
Contributor Author

Unit test added; checks that the relevant CausalEstimator objects exist and that they're the expected objects when retrieved from either accessor (via CausalEstimate.estimator or CausalModel.get_estimator()).

@drawlinson
Copy link
Contributor Author

Unsure why the CI tests failed, that part of the code is untouched and they all pass locally. Is this a build issue?

@bloebp
Copy link
Member
bloebp commented Dec 13, 2023

Unsure why the CI tests failed, that part of the code is untouched and they all pass locally. Is this a build issue?

Yea its an unrelated issue of a flaky unit test. Don't worry, I will re-run it.

@drawlinson
Copy link
Contributor Author

Thankyou!

@amit-sharma amit-sharma linked an issue Dec 21, 2023 that may be closed by this pull request
@amit-sharma amit-sharma merged commit 891105a into py-why:main Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add accessor to CausalModel._estimator_cache
3 participants
0