Skip to content

TST Extend tests for scipy.sparse.*array in sklearn/tests/test_multioutput.py#27171

Merged
OmarManzoor merged 2 commits intoscikit-learn:mainfrom
naman1608:sparse_array_test_multioutput
Aug 28, 2023
Merged

TST Extend tests for scipy.sparse.*array in sklearn/tests/test_multioutput.py#27171
OmarManzoor merged 2 commits intoscikit-learn:mainfrom
naman1608:sparse_array_test_multioutput

Conversation

@naman1608
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Towards #27090.

What does this implement/fix? Explain your changes.

Any other comments?

@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 25, 2023

✔️ Linting Passed

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

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

Copy link
Copy Markdown
Contributor

@work-mohit work-mohit left a comment

Choose a reason for hiding this comment

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

LGTM !
And thanks, your code helped me in fixing some error.

Copy link
Copy Markdown
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
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 @naman1608

@OmarManzoor OmarManzoor merged commit dea72cc into scikit-learn:main Aug 28, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Aug 29, 2023
@glemaitre
Copy link
Copy Markdown
Member

glemaitre commented Sep 11, 2023

There is actually a bug in SciPy:

/usr/share/miniconda/envs/testvenv/lib/python3.11/site-packages/scipy/sparse/_base.py:251: in __iter__
    yield self[r, :]
        r          = 0
        self       = <50x100 sparse array of type '<class 'numpy.float64'>'
	with 5000 stored elements in Dictionary Of Keys format>
/usr/share/miniconda/envs/testvenv/lib/python3.11/site-packages/scipy/sparse/_index.py:53: in __getitem__
    self._raise_on_1d_array_slice()
        col        = slice(None, None, None)
        key        = (0, slice(None, None, None))
        row        = 0
        self       = <50x100 sparse array of type '<class 'numpy.float64'>'
	with 5000 stored elements in Dictionary Of Keys format>

We should absolutely trigger the CI with [scipy-dev] tag to test against the nightly.

@ogrisel
Copy link
Copy Markdown
Member

ogrisel commented Sep 11, 2023

@glemaitre do you have a link to the full traceback?

@glemaitre
Copy link
Copy Markdown
Member

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

Labels

module:test-suite everything related to our tests No Changelog Needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants