Closed quentinhaenn closed 2 months ago
Is it possible to specify Numpy and Scipy version causing the error?
Updated: it seems that .A
alias has been deprecated since Scipy 1.11.0 based on the release note. We might need to update our model implementation.
Thanks for the reply.
I currently run with Numpy 1.26 and Scipy 1.14. Since you pointed out that .A as been deprecated since Scipy 1.11 this might be the issue.
I'll take a look at it. Thanks again !
Description
Using any of the model based on Recommender abstract class causes an Attribute Error Exception: csr_matrix object has no attribute A.
Tested with ItemKNN and UserKnn so far. SVD model works well with same dataset.
In which platform does it happen?
MacOS 14.5 with arm platform (M1) Python3.12
How do we replicate the issue?
MWE:
Issue traceback seems to indicate an issue in the source code, where ui_mat is defined with csr_matrix, and using ui_mat.A.ravel() in file
cornac/models/knn/recom_knn.py
Expected behavior (i.e. solution)
Expect the models to recommend as the SVD does, without throwing any internal error.