Skip to content

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

Merged
merged 8 commits into from
May 15, 2025
Merged

Conversation

FaustinPulveric
Copy link
Collaborator

No description provided.

Copy link

@Copilot Copilot AI left a 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",
Copy link
Preview

Copilot AI May 14, 2025

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”).

Suggested change
"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.

@FaustinPulveric FaustinPulveric force-pushed the master-API-risk-control branch from 7a2bc52 to 2a4eab8 Compare May 14, 2025 15:54
@FaustinPulveric FaustinPulveric force-pushed the master-API-risk-control branch from 2a4eab8 to 97ef755 Compare May 15, 2025 08:25
@Valentin-Laurent Valentin-Laurent merged commit cb82907 into master May 15, 2025
4 of 5 checks passed
@Valentin-Laurent Valentin-Laurent deleted the master-API-risk-control branch May 15, 2025 12:54
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.

3 participants