You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package is switching to an array interface, compatible with NumPy arrays, from the older matrix interface. We recommend that you use the array objects (bsr_array, coo_array, etc.) for all new work.
lightgbm should add support for scipy.sparse.csc_array and scipy.sparse.csr_array in all places that currently support the corresponding *_matrix classes.
Motivation
Allows continued use of scipy sparse types with lightgbm, even after future scipy releases remove those matrix types.
Closed in favor of being in #2302. We decided to keep all feature requests in one place.
Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature.
Summary
LightGBM currently has APIs to support two formats of sparse matrices:
In the Python library
scipy
, these are represented by classesscipy.sparse.csc_matrix
andscipy.sparse.csr_matrix
, respectively.Per
scipy
's docs (link)lightgbm
should add support forscipy.sparse.csc_array
andscipy.sparse.csr_array
in all places that currently support the corresponding*_matrix
classes.Motivation
Allows continued use of
scipy
sparse types withlightgbm
, even after futurescipy
releases remove those matrix types.Description
See the discussion in #6348 for more information.
References
Created based on this comment: #6348 (comment)
Good visual summary of these types: https://matteding.github.io/2019/04/25/sparse-matrices/#compressed-sparse-rowcolumn
The text was updated successfully, but these errors were encountered: