8000 MAINT fix tests by passing 1d vector to unique by glemaitre · Pull Request #28137 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT fix tests by passing 1d vector to unique #28137

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

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

glemaitre
Copy link
Member

closes #28126

The returned of np.unique containing the index has now the same shape than the input data (that is consistent). The previous test was expecting that if you pass a column or row matrix, the output will be equivalent to a vector.

I think that the change of behaviour of NumPy is legitimate and it only break the code in a test. So we don't have to report any regression here.

Copy link
github-actions bot commented Jan 15, 2024

✔️ Linting Passed

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

Generated for commit: b55e6cc. Link to the linter CI: here

@lesteve
Copy link
Member
lesteve commented Jan 17, 2024

Agreed, for reference the numpy change is likely numpy/numpy#25553

@lesteve lesteve enabled auto-merge (squash) January 17, 2024 07:18
@lesteve lesteve merged commit 4c0b9c4 into scikit-learn:main Jan 17, 2024
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jan 17, 2024
jeremiedbb pushed a commit that referenced this pull request Jan 17, 2024
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Feb 10, 2024
…n#28137)

Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
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.

⚠️ CI failed on Linux_Nightly.pylatest_pip_scipy_dev ⚠️
2 participants
0