8000 NumPy dev causes test errors due to use of np.matrix · Issue #11194 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
10000
NumPy dev causes test errors due to use of np.matrix #11194
Closed
@jnothman

Description

@jnothman

We are getting many warnings like PendingDeprecationWarning('the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. using numpy master (see logs at https://travis-ci.org/scikit-learn/scikit-learn/builds/387352026)

Apart from a very long log, this causes test failures where we have used assert_no_warnings (which we could now be importing from numpy instead of having our own implementation).

It might be a good idea to remove all uses of np.matrix that raise warnings. On the other hand, we might also consider that assert_no_warnings shouldn't be bothered by PendingDeprecationWarnings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0