-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Replacement for numpy.core.umath_tests.inner1d? #10815
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
Comments
If that's all the broadcasting you need, I think |
Good point, I did not think of that! Thanks a lot for the details! |
Actually, sometimes we have both |
Uh oh!
There was an error while loading. Please reload this page.
The scikit-learn Travis build using the numpy dev wheel started failing two days ago with the error (see for example this one):
This is due to fbb29df#diff-33315af1a22893e97676ee134db5ce1c which renamed compiled modules in numpy.core.
IIUC inner1d was kind of private and we were not meant to use it. What would you suggest is a good replacement for
inner1d(arr1, arr2)
? I found thatnp.einsum('...i,..i', arr1, arr2)
seemed to be doing something close in our uses cases (arr1 is of shape (p,) and arr2 of shape (n, p) in all our tests) but maybe there is a better replacement?The text was updated successfully, but these errors were encountered: