-
Notifications
You must be signed in to change notification settings - Fork 17
[MRG] MAINT: pin numpy version in windows #11
Conversation
|
The failure on Python 3.5 is weird. Maybe you can try with numpy 1.12.1 for Python 3.5 so see it this is a bug in numpy? |
|
If that is the case, I would still build with numpy 1.10, but test with numpy 1.12. In the travis configuration a similar distinction is used. |
I agree. |
|
I am doing a build bumping numpy. I will try to investigate the failure in a virtual machine. |
|
Thanks! |
|
So the reason is that In [1]: import numpy as np
In [2]: X = np.array([np.nan, 1, 2, np.nan, 10])
In [3]: np.clip(X, 0, 5)
Out[3]: array([ 0., 1., 2., 0., 5.])in the other version, we get something like: array([np.nan, 1., 2., np.nan, 5.])I'll try to check why. |
|
As @jorisvandenbossche said, build with the wheel oldest version of numpy and then run the tests with a newer version of numpy that does not have the bug. No need to debug old versions of numpy. |
|
I am testing with an older version. The bug is actually this one: The issue should be solved in 1.11.3 wheel. |
|
I think we should always run the tests with the newest stable version of numpy at the time of the newest scikit-learn release. WDYT @jorisvandenbossche @glemaitre ? |
|
I don't have strong opinion but it could be the most common case for most users. |
|
Thanks for the fix! |
Trying to lower the NumPy version when building the wheels.