Closed mrtztg closed 3 years ago
Also, I posted my problem in Stackoverflow. A guy mentioned using sparse matrix or sparse dataframe. But I have no idea how to do that.
Hi @mrtztg , I suggest you use the built-in functionality for creating the sparse matrices: https://making.lyst.com/lightfm/docs/lightfm.data.html#lightfm.data.Dataset
This example might be a good starting point: https://making.lyst.com/lightfm/docs/examples/dataset.html
Thanks. @SimonCW I'm currently trying to use this function since yesterday. Now I have another issue: Majority of the top N recommended items for users are mostly similar
Hi @mrtztg if this problem is solved please close it.
I'm relatively new to Python and recommendation systems. I'm implementing LightFM by following thing guide: I want to implement a recommendation system in python with this tutorial:
Solving business usecases by recommender system using lightFM But when I run the project, it crashes because of memory limit:
MemoryError: Unable to allocate 71.5 GiB for an array with shape (162541, 59047) and data type float64
I know that this is because of dataFrame size (100k rows, 25M columns). the code that generates this dataFrame:
But I have no idea to solve it.