scipy2scipy_clipped may return a matrix with a different shape to that of the input matrix #2065
Labels
bug
Issue described a bug
difficulty medium
Medium issue: required good gensim understanding & python skills
Description
The function scipy2scipy_clipped may return a clipped matrix with a different shape if the last dimension item is not among the top similar items of any row of the input matrix. This is particularly possible while chunking in SparseMatrixSimilarity, as the similarity matrix is incomplete and thus we don't get to see the last column of the last row (which, being a similarity matrix, usually contains 1)
Steps/Code/Corpus to Reproduce
Example:
Expected Results
Actual Results
Versions
Linux-4.4.0-116-generic-x86_64-with-debian-stretch-sid
('Python', '2.7.14 |Anaconda, Inc.| (default, Nov 8 2017, 22:44:41) \n[GCC 7.2.0]')
('NumPy', '1.13.3')
('SciPy', '1.0.0')
('gensim', '3.4.0')
('FAST_VERSION', 1)
The text was updated successfully, but these errors were encountered: