Skip to content
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: merge regression_coverage_score and regression_coverage_score_v2 #639

Merged
merged 18 commits into from
Apr 4, 2025

Conversation

Valentin-Laurent
Copy link
Collaborator

No description provided.

@Valentin-Laurent Valentin-Laurent requested a review from Copilot April 3, 2025 13:24
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

This PR merges the usage of two similar functions for computing regression coverage by replacing all calls to regression_coverage_score with regression_coverage_score_v2. It updates tests across multiple files to use the new function and removes an unused import.

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
mapie_v1/regression.py Removed an unused import from sklearn.model_selection
mapie/tests/test_time_series_regression.py Replaced regression_coverage_score with regression_coverage_score_v2 in the tests
mapie/tests/test_regression.py Updated tests to use regression_coverage_score_v2 and adjusted function calls accordingly
mapie/tests/test_quantile_regression.py Updated regression coverage function call to the new implementation
mapie/tests/test_metrics.py Removed deprecated tests and updated calls to regression_coverage_score_v2
mapie/metrics/regression.py Updated documentation and internal calls to align with the new regression_coverage_score_v2 function
Files not reviewed (1)
  • doc/api.rst: Language not supported
Comments suppressed due to low confidence (1)

mapie/tests/test_time_series_regression.py:289

  • [nitpick] Consider adding a brief comment to explain why only the first element of regression_coverage_score_v2's returned array is used, to enhance clarity in tests.
    coverage = regression_coverage_score_v2(y, y_pis)[0]

Valentin-Laurent and others added 15 commits April 3, 2025 16:33
…overage_score_v2 in notebooks, fix incorrect imports from previous refactoring
@Valentin-Laurent Valentin-Laurent merged commit f627116 into v1 Apr 4, 2025
6 checks passed
@Valentin-Laurent Valentin-Laurent deleted the v1-replace-regression-coverage-score-by-v2 branch April 4, 2025 07:36
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