sparse_dot_topn
Python package to accelerate the sparse matrix multiplication and top-n similarity selection
Python package to accelerate the sparse matrix multiplication and top-n similarity selection
To install this package, run one of the following:
Sparsedottopn provides a fast way to performing a sparse matrix multiplication followed by top-n multiplication result selections. Comparing very large feature vectors and picking the best matches, in practice often results in performing sparse matrix multiplication followed by selecting the top-n multiplication results. In this package, we implement a customized Cython function for this purpose. When comparing our Cythonic approach to doing the same use with SciPy and NumPy functions, our approach improves the speed by about 40% and reduces memory consumption.
Summary
Python package to accelerate the sparse matrix multiplication and top-n similarity selection
Last Updated
Oct 6, 2023 at 08:19
License
Apache-2.0
Total Downloads
13.4K
Supported Platforms
GitHub Repository
https://github.com/ing-bank/sparse_dot_topnDocumentation
https://github.com/ing-bank/sparse_dot_topn