Ranking

Ranking#

A collection of different metrics for ranking models.

AveragePrecisionAtK(total, count)

Computes AP@k (average precision at k) metrics.

DCGAtK(total, count)

Computes Discounted Cumulative Gain at k metric.

MRR(total, count)

Computes Mean Reciprocal Rank (MRR), supporting MRR@k for multiple k values.

NDCGAtK(total, count)

Computes Normalized Discounted Cumulative Gain at k (NDCG@k) metrics.

PrecisionAtK(total, count)

Computes P@k (precision at k) metrics.

RecallAtK(total, count)

Computes R@k (recall at k) metrics.