Open zheng-da opened 4 years ago
Hi,
Thanks for your feedback. This function will come in the next update of the package.
Thank you, Zeren Shui
Hi,
The newer version of the package is available. As we also need to update the documents, it will take some time for us to merge it into the master branch. You can now access the newer version of the package from branch version2.0.1.
You can export a SLIM model to a scipy csr matrix by running,
movie_spm = model.to_csr()
or
movie_spm, movie_map = model.to_csr(returnmap=True)
if you need the item map.
Thank you, Zeren Shui
To integrate SLIM with other models (for example, use SLIM to construct the item similarity graph and run GCN on it to compute item embeddings for item-based recommendation), it'll be nice that SLIM exports the similarity matirx as a scipy sparse matrix directly.
Currently, SLIM exports the similarity matrix to a file first before being loaded as a scipy matrix. Here is an example code we have to do. This is slow and inconvenient.