fix: Change formats of user_ids and item_ids arg.#1651
fix: Change formats of user_ids and item_ids arg.#1651miguelgfierro merged 3 commits intorecommenders-team:stagingfrom
Conversation
|
should we add the dtype to ensure it's np.int32? |
oh i forgot it. Thank you so much! |
miguelgfierro
left a comment
There was a problem hiding this comment.
@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_predictionfunction.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_idslink should be changed from int to np.int32 arrayitem_idslink should be changed from list to np.int32 arrayRelated Issues
I haven't found yet.
Checklist:
staging branchand not tomain branch.