-
Notifications
You must be signed in to change notification settings - Fork 110
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
ENH: Refactorization of MapieRegressor and ConformityScore #325
ENH: Refactorization of MapieRegressor and ConformityScore #325
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #325 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 32 34 +2
Lines 3775 3881 +106
Branches 406 413 +7
==========================================
+ Hits 3775 3881 +106
☔ View full report in Codecov by Sentry. |
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.
I'm only adding a few minor comments (description and moving if/else conditions). If @vincentblot28 has no further comments, I will approve the merging of these changes.
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.
Approve merging these changes. Looking forward to @vincentblot28's comments later today.
Description
The ConformityScore class called by MapieRegressor does not allow the scores to be calculated from X (only from y_pred).
To solve this problem a refactorization of MapieRegressor has been done : MapieRegressor now calls the EnsembleEstimator (defined in regression/estimator.py) that handle the training and usage of the estimator. The ConformityScore class is also modified : it now takes X and EnsembleEstimator in parameters.
Finally, the quantile calculation is intuitive according to the method (plus, base, minmax).
Fixes #317
Type of change
How Has This Been Tested?
Checklist
make lint
make type-check
make tests
make coverage
make doc