Closed lordaouy closed 4 months ago
Faced the same problem. I think it's scipy
related and that return np.array(result)
lines at the end of similarity functions in recommenders/utils/python_utils.py
should be changed to return result.toarray()
.
For example, the new version of jaccard
should read as
def jaccard(cooccurrence):
"""<docstring>"""
diag_rows, diag_cols = _get_row_and_column_matrix(cooccurrence.diagonal())
with np.errstate(invalid="ignore", divide="ignore"):
result = cooccurrence / (diag_rows + diag_cols - cooccurrence)
# return np.array(result) # not this
return result.toarray()
@lordaouy I am not sure, but it might be problem with scipy itself
I solved it lowering the version from the latest to scipy==1.10.1
and it worked perfectly
Resolved in PR #2083
Description
I got error when running sar_movielens.ipynb notebooks from azure machine learning compute instance
In which platform does it happen?
It happen on Azure ML compute instance
How do we replicate the issue?
This is setup script I use in AzureML :
this is my compute instance setting:
Expected behavior (i.e. solution)
Cell below should run without throwing error
Other Comments