-
Notifications
You must be signed in to change notification settings - Fork 794
Alternative scoring metrics #965
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
carl-offerfit
commented
Mar 31, 2025
- Allow specification of an alternative sklearn score function for double ML models
- Add score_nuisances function
|
@kbattocchi Here's an update:
|
|
@kbattocchi I fixed a bug that was cause of the test failures. Please let me know if there are still issues. |
kbattocchi
left a comment
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 revert the changes to pyproject.toml; also the DCO check is still failing because of commits that weren't signed off correctly.
pyproject.toml
Outdated
| [tool.pytest.ini_options] | ||
| testpaths = ["econml/tests"] | ||
| addopts = "--junitxml=junit/test-results.xml -n auto --strict-markers --cov-config=pyproject.toml --cov --import-mode=importlib" | ||
| addopts = "--junitxml=junit/test-results.xml -n0 --strict-markers --cov-config=pyproject.toml --import-mode=importlib" |
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.
Were you just changing these to run locally? We definitely want to use xdist and get coverage results, so please revert this change. If your own test needs to run serially you can use a @pytest.mark.serial attribute to mark your method (or class).
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.
Yes, it was to run the tests locally. I did not mean to commit it, sorry!
Signed-off-by: Kuan-Hao Huang <kuan.hao.huang.b02@gmail.com> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: kgao <kevin.leo.gao@gmail.com> Signed-off-by: Carl Gold <carl.goldd@braze.com>
…commit Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Use a function to verify the scoring function, whether sklearn or otherwise Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl@offerfit.ai> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
…N,1), as older pearsonr is Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
for more information, see https://pre-commit.ci Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Fabio Vera <fabiovera@microsoft.com> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: maartenvanhooft <mjgvanhooft@gmail.com> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Atharva Kelkar <akelkar@novilabs.com> Signed-off-by: Carl Gold <carl.goldd@braze.com>
Signed-off-by: Carl Gold <carl.goldd@braze.com>
c86881f to
149b10c
Compare
|
@kbattocchi I think I fixed the issues with the pyproject.toml and the sign-off. Let me know if you see any other issues. |
|
Closing in favor of #988 |