Skip to content

Replacement for numpy.core.umath_tests.inner1d? #10815

@lesteve

Description

@lesteve

The scikit-learn Travis build using the numpy dev wheel started failing two days ago with the error (see for example this one):

from numpy.core.umath_tests import inner1d
ModuleNotFoundError: No module named 'numpy.core.umath_tests'

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 that np.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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions