Skip to content

Check ndim of input arrays. (utils.check_arrays) #1597

Closed
@kyleabeauchamp

Description

@kyleabeauchamp

As discussed in #1549, utils.check_arrays() does not check the shape or ndim of input arrays. However, the docstring suggests that it should: "Checks whether all objects in arrays have the same shape or length."

To me, I think what we need is to break check_arrays() into several sub-functions or maybe a class:

  1. Check sparse / dense
  2. Check dtype
  3. Check first dimension
  4. Check all dimensions

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