Skip to content
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

Recommendation list #7

Open
patcharees opened this issue May 4, 2022 · 6 comments
Open

Recommendation list #7

patcharees opened this issue May 4, 2022 · 6 comments

Comments

@patcharees
Copy link

How to make a recommendation list for each customer?

@HaojiHu
Copy link
Owner

HaojiHu commented May 6, 2022

Not sure about your question. We just select the k entries with the highest values in the each user' result vector as the recommendation list.

@VaibhavKSingh
Copy link

There are two csv files for each data, history and future. How do you generate recommendation for the future data. What I understand from the code is that you have divided the customers into training, testing and validation sets and the final recommendations are generated for the test set customers only. How do you reterive the top k elements for each customer?

@HaojiHu
Copy link
Owner

HaojiHu commented Jul 22, 2022

If you want to do for each customer, you just need to decide which time step is the next step to predict and generate user vector basd on baskets before the next time step. Then, the top k elements are the top k entries in the user vector for each customer.

@HaojiHu
Copy link
Owner

HaojiHu commented Jul 23, 2022

Besides, I think you may also want to consider the leave-one-out method (if you want to consider all the users), in which you generate each target user vector by considering all other users in the kNN search. In my setting, I only search kNN for each test user in the training user set.

@VaibhavKSingh
Copy link

Does the next_time_step model the number of next baskets to be predicted ? Like if we set it to be 2, then would it mean that we are predicting for next 2 baskets instead of one?

@HaojiHu
Copy link
Owner

HaojiHu commented Jul 26, 2022

No, I don't have this implementation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants