How to inference next item in sequential model CORE? #1606
Replies: 1 comment
-
I think I have wrongly understood the functions. Now new question is, I think 1. I guess And, from I see Acceleration Strategy for top-k Evaluation. 3. Is there any way to inference last item with topk of the functions? Any code? Thank you. |
Beta Was this translation helpful? Give feedback.
-
I see CORE has
predict
,full_sort_predict
functions. But they all need the label data (the very last item) which istest_item_emb = self.item_embedding.weight
frominteraction[self.ITEM_ID]
which is again, the last item (label data).But to make real inference function, we should not have supervising last item in our function but solely have input sequential data. So what should inference function look like? Can you please provide it?
I tried
But I am not sure just using self.forward is a right way to do inference. Please guide me with code. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions