Comments (6)
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.
from tifuknn.
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.
from tifuknn.
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?
from tifuknn.
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.
from tifuknn.
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?
from tifuknn.
No, I don't have this implementation here.
from tifuknn.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tifuknn.