-
Notifications
You must be signed in to change notification settings - Fork 98
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
Why put test[u][0] into the item_index list ?? #11
Comments
@cherylLbt hi, |
Thanks for your quick reply. But what if I want to predict the next item while I don't know the real-next one? |
u are welcome :) We need to 'predict' only when we do not know sth, pls pay attention to the difference between model evaluation(testing, see what the model can do when we have some sample data to test it) and model inference(online serving, we do not know the right answer like real-next item, thus deploy a model to somehow predict it). Moreover, for a recommender system, you at least have two options for model serving:
for |
Thanks a lot for your detailed explanation, I understand!! |
Hi, sorry to bother you. I trained the model 800 epochs and did predictions on the dataset movielen-1m (i. e. I mask the last item and input the previous sequence into it. For the item_index, I put in all items. Then I calculated the probability of all items) |
As expected. See check https://github.com/pmixer/TiSASRec.debug and #6 if you are interested. Sharing on how to solve this issue is more than welcomed. |
Thanks a lot!!!
黄(Huáng)瓒(Zàn) <[email protected]> 于2021年2月10日周三 下午9:53写道:
… Hi, sorry to bother you. I trained the model 800 epochs and did
predictions on the dataset movielen-1m (i. e. I mask the last item and
input the previous sequence into it. For the item_index, I put in all
items. Then I calculated the probability of all items)
The training Hit Rate is only 0.15 in this way. Is it normal?
Expected. See check https://github.com/pmixer/TiSASRec.debug and #6
<#6> if you are
interested. Sharing on how to solve this issue is more than welcomed.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALYDYHTUYB77H6BXVB5G47TS6KFVPANCNFSM4XHL3MIA>
.
--
Regards,
Baitong Li
|
Thanks a lot. It totally answers my question. Hope to promote this problem |
Hi, could you please answer my question?
In the evaluate function, it makes an item_index list and put the test[u][0] in it.
What I consider is that the test[u][0] should be what we want to predict, but in this way, the model knows it should predict from the possibility of these candidates, including the one we want to predict.
Is this a kind of data leaking? Or did I misunderstand something?
My understanding of this phase is that: The model randomly chooses 100 candidates from all items (except those in the train sequence ) and adds the one it wants to predict into the candidate set. Then it predicts the probability of these 101 candidates. The logic seems to be strange.
The text was updated successfully, but these errors were encountered: