Closed drawlinson closed 6 months ago
Also thanks for opening PR for this! Similar as for the one-hot-encoding, can you add a unit test for this?
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()).
Unsure why the CI tests failed, that part of the code is untouched and they all pass locally. Is this a build issue?
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.
Thankyou!
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 https://github.com/py-why/dowhy/issues/1071