-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add next-basket recommendation evaluation method #545
Add next-basket recommendation evaluation method #545
Conversation
0e1a497
to
6671a15
Compare
@lthoang Can we have a short description on the philosophy behind this? And some best practices if any. |
Overall comments:
|
f6e51dd
to
028e1b1
Compare
aeac809
to
d85f1a7
Compare
…short basket sequence
efe4f32
to
6bb0a24
Compare
8f51f5a
to
dbd59cb
Compare
@lthoang one idea, how about maintaining UIR tuple as it is and keeping basket ids as another array like timestamps? It will be backward compatible with the current |
@lthoang please consider some comments above. In addition, I refactored
|
@lthoang I did some changes to reuse the code better. We're almost there. Please check if the following result looks fine.
|
27338be
to
6444303
Compare
The result looks fine. I have update the example. The new result as follows:
|
@lthoang LGTM |
Description
Next-basket recommendation takes history baskets (e.g., a sequence of baskets that have been purchased) as input to predict what the next-basket (a set of items) is.
To support modeling basket data, we must allow modeling repeating items.
To support next-basket recommendation, it should be a
NextBasketRecommender
with following function implemented:TODO:
The conventional metrics for evaluating next-basket recommendation are Recall, NDCG, and PHR. This paper also evaluate performance on repeating/exploring items separately.
Related Issues
#543
Checklist:
README.md
(if you are adding a new model).examples/README.md
(if you are adding a new example).datasets/README.md
(if you are adding a new dataset).