-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] SAR needs to be modified due to a breaking change in scipy #1954
Comments
After talking with @loomlike yesterday we found a couple of issues:
We can remove the line that casts to numpy array and ensure that everything is a sparse csr matrix. That said, the I see this commit was responsible for the casting, @gramhagen do you recall what was the rationale behind it? |
@anargyri, do you think you will have time to work on this issue? |
I can fix it, depending on how Scott responds. |
It looks like this was the original rationale behind using numpy array here #465 |
yes, that could work. The issue though comes from the operation in the Jaccard and the other similarity matrices. In scpicy <1.10, we will get a dense matrix, in scipy >1.11 we will get a sparse, and then we will need to transform them to dense. |
Yes, but |
iirc that casting was done to speed up computation, so whatever method is needed to keep that should be fine. |
Limit scipy <1.11.0 until #1954 is fixed
What Andreas and I discussed:
|
Fixed in PR #2083 |
Description
With scipy 1.10.1, the item similarity matrix is a dense matrix
but with scipy 1.11.1 the item similarity matrix is sparse
In which platform does it happen?
Related to #1951
How do we replicate the issue?
Expected behavior (i.e. solution)
Other Comments
We found that the issue was that during a division in Jaccard, scipy change the type. We talked to the authors of scipy and they told us that they did a breaking change in 1.11.0 scipy/scipy#18796 (comment)
The text was updated successfully, but these errors were encountered: