hidasib / GRU4Rec

GRU4Rec is the original Theano implementation of the algorithm in "Session-based Recommendations with Recurrent Neural Networks" paper, published at ICLR 2016 and its follow-up "Recurrent Neural Networks with Top-k Gains for Session-based Recommendations". The code is optimized for execution on the GPU.
Other
754 stars 223 forks source link

Can you make a brief explaination on how you calculate recall ? #41

Closed H13U1999 closed 3 years ago

H13U1999 commented 3 years ago

The way to calculate recall is Recall = TP/(TP + FN), but in the evaluation, I do not completely understand the way you calculate it, can you make a brief explanation on this? Thank you.

giaabaoo commented 3 years ago

Can you show me how to calculate the Precision too? Did you count the number of true positives then divide it by the number of all relevant items like the normal way? I tried to output your ranks tensor but I don't think I understand what it is. I would be very grateful. Thanks guys.

giaabaoo commented 3 years ago

Can you show me how to calculate the Precision too? Did you count the number of true positives then divide it by the number of all relevant items like the normal way? I tried to output your ranks tensor but I don't think I understand what it is. I would be very grateful. Thanks, guys.

The ranks variable is a list of different numbers, is each number the number of relevant items retrieved from the model's predictor?