8/31
Part 2 of 6 · NDCGLearn and do

Nothing relevant is 0 over 0, so pick a rule

One input breaks the division: a list where nothing is relevant.

print(ndcg_at_k([0, 0, 0], 3))
Predict

Nothing is relevant: [0, 0, 0]. What does ndcg_at_k return?

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

What do ndcg_at_k([2, 1], 10) and ndcg_at_k([], 5) return?

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