#StackBounty: #recommender-system #ranking How to calculate precision at K and NDCG for ranking algorithms

Bounty: 50

I am ranking a filtered item list as per user’s metadata and historical behaviour.

Now how to calculate metrices like precision at K?

One approach could be –
Divide historical data in training and test dataset(e.g. 90% and 10%). Now pick all the items for a user from test data and randomize the order and pass it to the ranking algorithm.

Now compare actual items for the user from test data to the ranked output.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.