Skip to content

Integers casted to float32 can lose precision #13

@david-cortes

Description

@david-cortes

When receiving IDs for users and items, they get casted to float32. For values above 2^23 (around 8.3 million), the conversion might be imprecise, since not all integers higher than that are possible to represent exactly in float32, and thus some user and items might get mixed up with others or might get their IDs reassiged, which is problematic when predicting.

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