Skip to content
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

[MRG] FIX change boolean array-likes indexing in old NumPy version #14510

Merged
merged 8 commits into from
Aug 2, 2019

Conversation

glemaitre
Copy link
Member

closes #13858

Boolean array-likes and boolean arrays are not indexing the same way for older NumPy version.
Up-to-now it was not an issue, but it seems that we have a bug in ColumnTransformer.

We should make sure that boolean array-likes are converted to arrays for older NumPy version.

@glemaitre glemaitre changed the title FIX change boolean array-likes indexing in old NumPy version [MRG] FIX change boolean array-likes indexing in old NumPy version Jul 30, 2019
@glemaitre
Copy link
Member Author

@jnothman @amueller @jorisvandenbossche It seems that the ColumnTransformer would be broken with mask indexing with NumPy < 1.13

I don't know if this is the right fix thought

@jorisvandenbossche
Copy link
Member

This seems the correct fix to me.

But no plans to bump the numpy version in the next release? (which might make this unneeded)

@glemaitre
Copy link
Member Author

But no plans to bump the numpy version in the next release? (which might make this unneeded)

Not if we keep synchronized with the Ubuntu LTS support.

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

LGTM, thought I'm not sure whether it's for version 1.12 or 1.13

Thanks @glemaitre

doc/whats_new/v0.22.rst Outdated Show resolved Hide resolved
sklearn/utils/__init__.py Outdated Show resolved Hide resolved
@thomasjpfan thomasjpfan merged commit 992ed41 into scikit-learn:master Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some CI builds misinterpret numpy boolean indexing
6 participants