Skip to content

Mimic the behavior of LightGBM for sparse array inputs #305

Open
@hcho3

Description

@hcho3

When given a sparse array (scipy.sparse.csr_matrix), LightGBM assigns value 0 to all features that are not present in the sparse array. Currently, Treelite converts non-present features into NaNs. We will need to add a flag to indicate that non-present features should be converted into zeros instead.

Related: microsoft/LightGBM#4468 (comment)

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