-
Notifications
You must be signed in to change notification settings - Fork 94
Add Gain statistics and weights for ATTE #229
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
_fit_and_predit from sklearn did remove the verbose argument
@@ -354,6 +354,7 @@ def psi(self): | |||
Values of the score function after calling :meth:`fit`; | |||
For models (e.g., PLR, IRM, PLIV, IIVM) with linear score (in the parameter) | |||
:math:`\\psi(W; \\theta, \\eta) = \\psi_a(W; \\eta) \\theta + \\psi_b(W; \\eta)`. | |||
The shape is ``(n_obs, n_rep, n_coefs)``. |
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 all the changes. I thought _predictions
was a dictionary with keys corresponding to the learner names, so the shape info rather refers to the corresponding values?
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 point. I will fix this.
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 the changes. I think the changes for the ATTE score (external predictions and also the new definition of the score) is really nice. I think moving the gain_statistics
into a separate utils file makes sense. The code for the benchmarking in doubleml
is now really concise
Add the computation of gain statistics to
utils
asgain_statistics
.Adding the option to set binary weights for
score="ATTE"
inDoubleMLIRM
model.Further, added shapes to several attribute descriptions.