-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
Conversation
sklearn/utils/estimator_checks.py
Outdated
@@ -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) |
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.
you can simply use f-strings here
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.
True!
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.
LGTM. Thanks @StefanieSenger
Reference Issues/PRs
closes #30238
What does this implement/fix? Explain your changes.
Add formatting strings according to issue.