-
Notifications
You must be signed in to change notification settings - Fork 125
MTN: refacto Risk Control API #697
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
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.
Pull Request Overview
Refactors the multi-label conformal prediction API by renaming the MapieMultiLabelClassifier
to PrecisionRecallController
and updating all related imports, references, tests, examples, and documentation.
- Renamed class and updated return type hints in
mapie/risk_control.py
- Updated imports and usages in notebooks, tests, examples, and docs
- Adjusted module exports in
mapie/__init__.py
and updated API docs
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
notebooks/classification/tutorial_multilabel_classification_recall.ipynb | Updated import, markdown, and code to use PrecisionRecallController |
notebooks/classification/tutorial_multilabel_classification_precision.ipynb | Same renaming in precision tutorial |
mapie/tests/test_multi_label_classification.py | Replaced MapieMultiLabelClassifier references with PrecisionRecallController in tests |
mapie/risk_control.py | Renamed class and adjusted docstring examples and return types |
mapie/control_risk/risks.py | Updated comments referencing old class name |
mapie/init.py | Swapped out multi_label_classification export for risk_control |
examples/multilabel_classification/1-quickstart/plot_tutorial_multilabel_classification.py | Updated example script to import and use new class |
doc/api.rst | Updated API listing to reference PrecisionRecallController |
Comments suppressed due to low confidence (1)
mapie/init.py:5
- [nitpick] Removing the
multi_label_classification
module export is a breaking change; consider providing a deprecated alias or migration path for users upgrading from previous versions.
multi_label_classification,
"\n", | ||
"MapieMultiLabelClassifier will be fitted with RCPS and CRC methods. For the RCPS method, we will test all three Upper Confiance Bound (Hoeffding, Bernstein and Waudby-Smith–Ramdas).\n", | ||
"PrecisionRecallController will be fitted with RCPS and CRC methods. For the RCPS method, we will test all three Upper Confiance Bound (Hoeffding, Bernstein and Waudby-Smith–Ramdas).\n", |
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.
The word “Confiance” is misspelled; please change to “Confidence” (and consider pluralizing to “Bounds”).
"PrecisionRecallController will be fitted with RCPS and CRC methods. For the RCPS method, we will test all three Upper Confiance Bound (Hoeffding, Bernstein and Waudby-Smith–Ramdas).\n", | |
"PrecisionRecallController will be fitted with RCPS and CRC methods. For the RCPS method, we will test all three Upper Confidence Bounds (Hoeffding, Bernstein and Waudby-Smith–Ramdas).\n", |
Copilot uses AI. Check for mistakes.
7a2bc52
to
2a4eab8
Compare
…ller and from multi_label_classification.py to risk_control.py
…nd update migration guide
2a4eab8
to
97ef755
Compare
No description provided.