CMD + K

sparse_dot_topn

Community

Sparse_dot_topn 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.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::sparse_dot_topn

Usage Tracking

0.3.1
0.2.9
0.2.8
0.2.6
0.2.5
5 / 8 versions selected
Downloads (Last 6 months): 0

About

Summary

Sparse_dot_topn 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.

Last Updated

Jun 14, 2021 at 12:28

License

Apache-2.0

Total Downloads

196.5K

Supported Platforms

linux-64
win-64
macOS-64