Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 641 Bytes

matrix.rst

File metadata and controls

25 lines (17 loc) · 641 Bytes

Matrix Utilities

lenskit.matrix

We have some matrix-related utilities, since matrices are used so heavily in recommendation algorithms.

Building Ratings Matrices

sparse_ratings

RatingMatrix

Compressed Sparse Row Matrices

We use CSR-format sparse matrices in quite a few places. Since SciPy's sparse matrices are not directly usable from Numba, we have implemented a Numba-compiled CSR representation that can be used from accelerated algorithm implementations.

CSR

_CSR