8000 force_all_finite in check_array is broken when dtype="int" · Issue #14871 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
force_all_finite in check_array is broken when dtype="int" #14871
Closed
@qinhanmin2014

Description

@qinhanmin2014

See #12569 (comment)

check_array(np.array([[1], [2], [np.nan]]), accept_sparse=False,
            force_all_finite=True, dtype="int")
# this should fail, but we get
# array([[          1],
#        [          2],
#        [-2147483648]])
check_array(np.array([[1], [2], [np.inf]]), accept_sparse=False,
            force_all_finite=True, dtype="int")
# this should fail, but we get
# array([[          1],
#        [          2],
#        [-2147483648]])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0