You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not provide friendly API for prediction. But it's not difficult to solve your problem.
Please refer to the code below
scores = self.compute_x_batch(u, b_tm1)
if i == scores.argmax():
correct_count += 1
The basic idea of "prediction" in FPMC (or BPR) is to select items with high scores. That is, the prediction is a rank list. You can get the list by sorting indices using values as keys.
The size of a next basket depends on you.
How might one go about changing this to predict next baskets of multiple items?
The text was updated successfully, but these errors were encountered: