Description Usage Arguments Details
Groups samples according to group, sorts them within each group based on output and computes the Normalized Discounted Cumulative Gain (NDCG) at 1 for each group. Concretely, the NDCG at 1 is:
1 |
name |
$\mathrmNDCG_1 = \fracgain_(1)\max_i gain_i$
where gain(1)gain(1) means the gain of the first ranked sample.
Samples in the same group must appear in order of decreasing gain.
It returns the average NDCG at 1 across all the groups in the minibatch multiplied by 100 times the number of samples in the minibatch.
This is a forward-only operation, there is no gradient for it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.