We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am proposing a modification to the filter_triplets function.
filter_triplets
The proposed modification is to change:
if min_sc > 0: itemcount = get_count(tp, 'movieId') tp = tp[tp['movieId'].isin(itemcount.index[itemcount >= min_sc])] if min_uc > 0: usercount = get_count(tp, 'userId') tp = tp[tp['userId'].isin(usercount.index[usercount >= min_uc])]
to:
if min_sc > 0: itemcount = get_count(tp, 'movieId') tp = tp[tp['movieId'].isin(itemcount[itemcount >= min_sc]['movieId'])] # Modified if min_uc > 0: usercount = get_count(tp, 'userId') tp = tp[tp['userId'].isin(usercount[usercount >= min_uc]['userId'])] # Modified
The reason for this change is that 'movieId' and 'userId' values may not align perfectly with the index due to possible gaps or mismatches.
Thank you for considering this adjustment.
Best regards, JunHyuck
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am proposing a modification to the
filter_triplets
function.The proposed modification is to change:
to:
The reason for this change is that 'movieId' and 'userId' values may not align perfectly with the index due to possible gaps or mismatches.
Thank you for considering this adjustment.
Best regards,
JunHyuck
The text was updated successfully, but these errors were encountered: