Skip to content

TST Extend tests for scipy.sparse/*array in sklearn/utils/tests/test_multiclass - #27274

Merged
OmarManzoor merged 5 commits into
scikit-learn:mainfrom
Charlie-XIAO:tst_sp_multiclass
Sep 12, 2023
Merged

OmarManzoor merged 5 commits into
scikit-learn:mainfrom
Charlie-XIAO:tst_sp_multiclass

Conversation

@Charlie-XIAO

Copy link
Copy Markdown
Contributor

Towards #27090.

@github-actions

github-actions Bot commented Sep 3, 2023 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 5f33e08. Link to the linter CI: here

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @Charlie-XIAO. I think this one might require a change log entry because it is changing the code to support spare arrays.

Comment thread sklearn/utils/tests/test_multiclass.py Resolved
Comment thread doc/whats_new/v1.4.rst Resolved
@glemaitre
glemaitre self-requested a review September 11, 2023 17:57

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Otherwise, it looks good.

Comment thread sklearn/utils/tests/test_multiclass.py Resolved
Comment thread sklearn/utils/tests/test_multiclass.py Resolved
Comment thread sklearn/utils/tests/test_multiclass.py Resolved
Comment thread sklearn/utils/tests/test_multiclass.py Resolved
@Charlie-XIAO

Charlie-XIAO commented Sep 12, 2023 •

Copy link
Copy Markdown
Contributor Author

Thanks for the review @glemaitre, I think I have used [*l1, *l2] in all my other PRs. Seems that l1 + l2 is preferred, and I will make the changes ASAP. By the way, may I ask why this is preferred (maybe for readability)?

Update: Sorry this question seems to be a duplicate of #27262 (comment), please just ignore this.

@glemaitre

Copy link
Copy Markdown
Member

By the way, may I ask why this is preferred (maybe for readability)?

I answer here: #27262 (comment). But the unpacking is not fundamentally wrong.

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Waiting for the CIs to turn green.

@glemaitre

Copy link
Copy Markdown
Member

@OmarManzoor This one should be good to go.

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks @Charlie-XIAO

@OmarManzoor
OmarManzoor merged commit 18a13f2 into scikit-learn:main Sep 12, 2023
@Charlie-XIAO
Charlie-XIAO deleted the tst_sp_multiclass branch September 12, 2023 12:15
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants