Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ShehanAT
Copy link
Contributor

@ShehanAT ShehanAT commented Jun 9, 2022

Reference Issues/PRs

Fixes #14860
This pull request is identical to #14862 with the addition of an extra commit as suggested by @ilivans See comment here

What does this implement/fix? Explain your changes.

I added the extra line: csr_matrix(np.array([[0, 1]])), to the following section in the scikit-learn/sklearn/utils/tests/test_multiclass.py file:

EXAMPLES = {
    "multilabel-indicator": [
      ...
      csr_matrix(np.array([[0, 1]])),
      ....
    ]}

Any other comments?

Let me know if you need any changes or if I missed something

@jeremiedbb
Copy link
Member

Thanks for the PR @ShehanAT. This has been done as part of #14862. We can close this one.

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.

sklearn.utils.multiclass.type_of_target with sparse csr matrix raises ValueError

5 participants