Skip to content

Conversation

jeremy-feng
Copy link
Contributor

Description

This PR corrects a misleading description in the docstring of the get_signed_conformity_scores function within mapie/conformity_scores/bounds/residuals.py.

The previous docstring incorrectly stated that the r_pred parameter was the predicted signed residual (y - y_pred). In reality, the underlying model (residual_estimator_) predicts the absolute residual. This change updates the docstring to abs(y - y_pred) to accurately reflect the model's behavior and prevent confusion for users and developers. It also coordinates with the docstring in this line.

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 corrects a misleading docstring description in the get_signed_conformity_scores function to accurately reflect that the residual estimator predicts absolute residuals rather than signed residuals.

  • Updates docstring to clarify that r_pred represents abs(y - y_pred) instead of (y - y_pred)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@allglc allglc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks!

@allglc allglc merged commit 77bb10e into scikit-learn-contrib:master Sep 25, 2025
9 of 11 checks passed
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