Skip to content

AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. #4

@mariaapostigo

Description

@mariaapostigo

tp_sum = np.cumsum(tps, axis=1).astype(dtype=np.float)

To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. si el fichero no es mío

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions