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

move id issue #77

Open
teang1995 opened this issue May 5, 2022 · 1 comment
Open

move id issue #77

teang1995 opened this issue May 5, 2022 · 1 comment

Comments

@teang1995
Copy link

Hi, can i get the script code for hasing movie id?
I want to get performance of NCF by domain(genre or popularity), so i have to get original id from your preprocessed data.
Thank you

@farouqzaib
Copy link

@teang1995
newMovieIdDict = dict(zip(ratings['movieId'].unique(), range(len(ratings['movieId'].unique()))))

^ is what I think they did. ratings here is the Dataframe from the original Movielens 1M data. The keys in the dictionary are the original movie IDs, and the values are their mapping to the ID used in the NCF paper. I've spot-checked a number of entries and the mapping holds true.

Perhaps someone from the NCF paper can confirm.

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