How can I make prediction faster with only training data? #1288
-
Hello, When I train a model such as General models, I use full_sort_topk funtion to make top k prediction. However this function takes valid_data as an argument. My first question is, how I can make prediction If I do not have any validation set and I have only training dataset? My solution is to create a Interaction object of all interactions of (user, item) and make prediction with model_2.predict(), however I am facing two issue.
Interesting fact is that full_sort_topk executes too fast (up to 10 min) on the whole dataset to make topk prediction for all the users, however model.predict takes too much time (2days) for all users. Thank you in advance, for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@gurokeretcha Hello, thanks for your attention to RecBole! |
Beta Was this translation helpful? Give feedback.
@gurokeretcha Hello, thanks for your attention to RecBole!
You can only create an interaction object with all users, and utilize
model.full_sort_predict()
function, which will give the scores of all items for a certain user. Then you can select topk item based on it.