Skip to content

Conversation

gdaiha
Copy link
Contributor

@gdaiha gdaiha commented Sep 5, 2025

Add scoring parameter to drlearner, to allow score other metrics than MSE in Doubly Robust models

@gdaiha gdaiha force-pushed the gdaiha/fix-dr-scoring branch from ff617c4 to 243e8a0 Compare September 5, 2025 12:56
@gdaiha
Copy link
Contributor Author

gdaiha commented Sep 5, 2025

Two tests failed with the same problem: "No module named '_posixsubprocess'". I sincerely think that changes here does not affect this module. How could we solve it? @kbattocchi

@kbattocchi
Copy link
Collaborator

Yes, the failure is unrelated to your changes, it looks like the build runners upgraded to Python 3.13.7 and we're hitting python/cpython#138031. I'll see what I can do to address it.

@gdaiha
Copy link
Contributor Author

gdaiha commented Sep 5, 2025

I'm going to add the adjustments needed in _drlearner.py to make scoring parameter work, very similar to what've been done in DML

@gdaiha gdaiha force-pushed the gdaiha/fix-dr-scoring branch from 1b113b9 to 2be4716 Compare September 5, 2025 21:04
@gdaiha gdaiha force-pushed the gdaiha/fix-dr-scoring branch from 2be4716 to c75f649 Compare September 5, 2025 21:33
@gdaiha gdaiha changed the title Add scoring parameter to drlearner [WIP] Add scoring parameter to drlearner Sep 5, 2025
@gdaiha gdaiha force-pushed the gdaiha/fix-dr-scoring branch from ecea501 to b70ca08 Compare September 8, 2025 14:24
@gdaiha gdaiha force-pushed the gdaiha/fix-dr-scoring branch from b70ca08 to 92406d3 Compare September 8, 2025 14:25
@gdaiha gdaiha marked this pull request as draft September 8, 2025 14:33
@gdaiha gdaiha marked this pull request as ready for review September 8, 2025 23:14
@gdaiha gdaiha changed the title [WIP] Add scoring parameter to drlearner Add scoring parameter to drlearner Sep 8, 2025
@gdaiha
Copy link
Contributor Author

gdaiha commented Sep 8, 2025

@kbattocchi , I ended the implementations here. Ready to review. The tests that are failing does not have any relationship with this new feature.

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.

2 participants