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

number of Users doesn't match, in Amazon-Book #7

Closed
liulu1998 opened this issue Dec 27, 2020 · 2 comments
Closed

number of Users doesn't match, in Amazon-Book #7

liulu1998 opened this issue Dec 27, 2020 · 2 comments

Comments

@liulu1998
Copy link

The number of Users in Amazon-Book isn't equal to that shown in your table.

I use Books (ratings only, 22,507,155 ratings), which is 873.81MB, download from Amazon Reviews 2014.

My source code :

df = pd.read_csv("./ratings_Books.csv", header=None)

df.columns = ["user", "item", "rating", "timestamp"]

print(f"number of user: {len(np.unique(df.user))}")
print(f"number of item: {len(np.unique(df.item))}")
print(f"number of interaction: {len(df)}")

the output is :

number of user: 8026324
number of item: 2330066
number of interaction: 22507155

As shown above, number of Users I count is 8,026,324, which isn't equal to 3,468,412 shown in your table., while other numbers match.

Am I using a wrong version of Amazon-Book ?

@RichardHGL
Copy link
Collaborator

I checked it, it should be 8,026,324 users in this dataset. I'm sorry for the mistake.
I think you use the right version, as the number of items and interactions is the same as the paper.

@liulu1998
Copy link
Author

@RichardHGL
Thanks for your reply.

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

2 participants