-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FIX fix scipy bug with sp.hstack
in ClassifierChain
and RegressorChain
#28524
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
Conversation
Ups, failing checks, I will fix that. |
ClassifierChain
sp.hstack
in ClassifierChain
sp.hstack
in ClassifierChain
sp.hstack
in ClassifierChain
and RegressorChain
I wonder why |
From #13337 (comment), it seems to be because "it's multilabel only, and there's no tag for that and no handling in the common tests." Slightly related (to this PR) is this issue: #27905, if anyone has thoughts on it? |
Yes, and in the meantime we do have |
I need to do a bit more here, or else the tests fail for scipy versions that did not have sparse arrays. I will figure something out. |
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.
@StefanieSenger do you still want to do something here? It looks good to me.
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!
@adrinjalali |
Thanks for the fix @StefanieSenger. |
Reference Issues/PRs
Fixes scipy bug that affected our repo after mergin both #27700 and #27576
What does this implement/fix? Explain your changes.
X is converted to a sparse coo array before hstacking in case it was a sparse dok array before.
Also see discussion on scipy: scipy/scipy#20060 (comment):