-
Notifications
You must be signed in to change notification settings - Fork 25
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
Comments
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. |
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? |
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. |
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. |
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? |
No, I don't have this implementation here. |
How to make a recommendation list for each customer?
The text was updated successfully, but these errors were encountered: