Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in dataset.py during matrix creation using very large dataset (movielens 1m) #1

Open
xrob1 opened this issue Dec 15, 2021 · 0 comments

Comments

@xrob1
Copy link

xrob1 commented Dec 15, 2021

In the "get_length(self, train_name, test_name)" function the return having .nunique() function returns the wrong number of users.

resolved returning:
76) return (data.max(axis = 0)["user"]+1), (data.max(axis = 0)["item"]+1)

and changing 94 to:
94) self.train = sp.dok_matrix((self.num_users , self.num_items ), dtype=np.float32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant