以前跑过的一个实验跑不起来了,记录一下
实验是这个
https://github.com/enoche/MMRec/?tab=readme-ov-file
遇到的错误是
'dok_matrix' object has no attribute '_update'
解决方法是
#A._update(data_dict)
for (row, col), value in data_dict.items():
A[row, col] = value
原因是
scipy新版删除了这个方法
The version of scipy used by this package may need to be limited to <1.13 to avoid this.
参考
https://github.com/RUCAIBox/RecBole/issues/2090