RandolphVI / Next-Basket-Recommendation

About Next Basket Recommendations Based on Neural Network.
Apache License 2.0
48 stars 19 forks source link

caculation for hitratio and ndcg #3

Open Cloudcatcher888 opened 4 years ago

Cloudcatcher888 commented 4 years ago

The hitratio and ndcg will be influenced by neg sample numbers. I think the calculation method for these two metrics might be wrong in some way. The example is when neg sample is 1, the ndcg will larger than 1 and hitratio will always be 1, and when neg sample is rather small, the hitratio will be much smaller.

zf-shao commented 2 years ago

I think so too. Do you have a better calculation method?