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

Skip to content

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

@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