-
Notifications
You must be signed in to change notification settings - Fork 721
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
Vasilis/drate #391
Vasilis/drate #391
Conversation
…ith sklearn logic for future easier extendibility.
…ded a summary functionality to the causal forest.
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.
Please make sure that the new logic is well covered by tests.
raise AttributeError("`oob_predict` is not available when " | ||
"the estimator was fitted with `warm_start=True`") |
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.
Should this be mentioned in the method docstring? What about the warm_start part of the init docstring?
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.
Added it in docstring. Also added it in the warm_strt docstring. I also removed warm_Start from causalForestDML. It makes no sense there as there is no way for the final model to be refit to new data! So that only is a weird option to have.
econml/dml/causal_forest.py
Outdated
if not self._drate: | ||
raise AttributeError("Doubly Robust ATE calculation on training data " | ||
"is available only when `drate=True`!") | ||
return self._ate |
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.
For some reason the coverage report shows this line (and the corresponding ate_stderr_
one as uncovered... Does that make sense?
econml/dml/causal_forest.py
Outdated
over the training data and with a doubly robust correction. | ||
Available only when `discrete_treatment=True` and `oob=True`. | ||
""" | ||
return NormalInferenceResults(d_t=self._d_t[0] if self._d_t else 1, |
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.
This and the subsequent properties are also showing as uncovered by tests.
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.
This is weird! This should be covered!
…ring of method and docstring of warm_start
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.
LGTM
No description provided.