11/31
Part 3 of 6 · A worked exampleLearn and do

NDCG@k can go down as k grows

You might expect NDCG to rise as k grows, since more results count. It doesn't have to.

print([round(ndcg_at_k(shown, k), 2) for k in range(1, 7)])
Predict

NDCG@k for k = 1 to 6 on that list. Does it only go up as k grows?

Pick one to see what it prints.
Pick an answer above to see the rest