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

TST add formatting strings to check_regressor_multioutput assertion #30241

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

StefanieSenger
Copy link
Contributor

Reference Issues/PRs

closes #30238

What does this implement/fix? Explain your changes.

Add formatting strings according to issue.

Copy link

github-actions bot commented Nov 8, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 6f0c2f3. Link to the linter CI: here

@@ -2080,7 +2080,7 @@ def check_regressor_multioutput(name, estimator):
)
assert y_pred.shape == y.shape, (
"The shape of the prediction for multioutput data is incorrect."
" Expected {}, got {}."
" Expected {}, got {}.".format(y_pred.shape, y.shape)
Copy link
Member

Choose a reason for hiding this comment

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

you can simply use f-strings here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True!

Copy link
Contributor

@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @StefanieSenger

@OmarManzoor OmarManzoor added the Quick Review For PRs that are quick to review label Nov 13, 2024
@adrinjalali adrinjalali merged commit a10f5fd into scikit-learn:main Nov 14, 2024
34 checks passed
@StefanieSenger StefanieSenger deleted the format_string branch November 14, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:utils Quick Review For PRs that are quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing format string arguments
3 participants