-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix: Change formats of user_ids and item_ids arg. #1651
Conversation
should we add the dtype to ensure it's np.int32? |
oh i forgot it. Thank you so much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ywkim92 this is great, thanks, however there is a conflict in the code so we can't merge, can you please review?
Hello, thanks for your kind comments. I resolved the conflict as you said. Could you please check this issue again and git me some hints if the conflict is still not resolved? |
May i know if the issue has been fixed? If not, is there any work around? with Timer() as test_time: TypeError: Invalid type passed to user_ids parameter. This must be either int or np.int32 array. Type received: <class 'numpy.int64'> System version: 3.8.13 (default, Mar 28 2022, 06:59:08) [MSC v.1916 64 bit (AMD64)] |
SafetyMary if you install recommenders from main, the code in this PR should be in. We will do a release in PyPI soon that will include this |
Have updated to the lastest 1.1.0 ver through pip but the issue still presists. |
Description
ML model predicts the rating for an user inside
prepare_all_prediction
function.But if I run the current code, the following error occurs:
TypeError: Invalid type passed to user_ids parameter. This must be either int or np.int32 array. Type received: <class 'numpy.int64'>
To fix this error,
user_ids
link should be changed from int to np.int32 arrayitem_ids
link should be changed from list to np.int32 arrayRelated Issues
I haven't found yet.
Checklist:
staging branch
and not tomain branch
.