@@ -115,8 +115,7 @@ def retrieval_map(query_labels: LABELS_VALUE_TYPE, candidates_labels: CANDIDATE_
115115 Calculate the mean average precision at position k.
116116
117117 The Mean Average Precision (MAP) is computed as the average of the average precision
118- (AP) scores for all queries. The average precision for a single query is calculated using
119- the :func:`average_precision` function, which computes the precision at each rank
118+ (AP) scores for all queries. The average precision for a single query computes the precision at each rank
120119 position considering the top-k retrieved items.
121120
122121 MAP is given by:
@@ -192,8 +191,7 @@ def retrieval_map_intersecting(
192191
193192 The Mean Average Precision (MAP) for intersecting labels is computed as
194193 the average of the average precision (AP) scores for all queries. The average
195- precision for a single query is calculated using the :func:`average_precision_intersecting`
196- function, which considers the intersecting true and predicted labels for the
194+ precision for a single query considers the intersecting true and predicted labels for the
197195 top-k retrieved items.
198196
199197 MAP is given by:
@@ -226,8 +224,8 @@ def retrieval_map_macro(
226224 r"""
227225 Calculate the mean average precision at position k for the intersecting labels.
228226
229- This function internally uses :func:`retrieval_map` to calculate the MAP for each query and then
230- applies :func:`macrofy` to perform macro-averaging across multiple queries.
227+ This function internally uses :func:`retrieval_map` to calculate the MAP for each query and
228+ performs macro-averaging across multiple queries.
231229
232230 :param query_labels: For each query, this list contains its class labels
233231 :param candidates_labels: For each query, these lists contain class labels of items ranked by a retrieval model
@@ -372,7 +370,7 @@ def retrieval_hit_rate_macro(
372370 Calculate the hit rate at position k for the intersecting labels.
373371
374372 This function internally uses :func:`retrieval_hit_rate` to calculate the hit rate at position :math:`k`
375- for each query and applies :func:`macrofy` to perform macro-averaging across multiple queries.
373+ for each query and performs macro-averaging across multiple queries.
376374
377375 :param query_labels: For each query, this list contains its class labels
378376 :param candidates_labels: For each query, these lists contain class labels of items ranked by a retrieval model
@@ -508,7 +506,7 @@ def retrieval_precision_macro(
508506 Calculate the precision at position k for the intersecting labels.
509507
510508 This function internally uses :func:`retrieval_precision` to calculate the precision at position :math:`k`
511- for each query and applies :func:`macrofy` to perform macro-averaging across multiple queries.
509+ for each query and performs macro-averaging across multiple queries.
512510
513511 :param query_labels: For each query, this list contains its class labels
514512 :param candidates_labels: For each query, these lists contain class labels of items ranked by a retrieval model
@@ -685,8 +683,7 @@ def retrieval_ndcg_macro(
685683 r"""
686684 Calculate the Normalized Discounted Cumulative Gain (NDCG) at position k for the intersecting labels.
687685
688- This function calculates NDCG using :func:`retrieval_ndcg` and applies it to each
689- query using :func:`macrofy` to compute the macro-averaged score.
686+ This function calculates NDCG using :func:`retrieval_ndcg` and computes the macro-averaged score.
690687
691688 :param query_labels: For each query, this list contains its class labels
692689 :param candidates_labels: For each query, these lists contain class labels of items ranked by a retrieval model (from most to least relevant)
@@ -778,8 +775,7 @@ def retrieval_mrr_macro(
778775 r"""
779776 Calculate the Mean Reciprocal Rank (MRR) at position k for the intersecting labels.
780777
781- This function calculates MRR using :func:`retrieval_mrr` and applies it to each
782- query using :func:`macrofy` to compute the macro-averaged score.
778+ This function calculates MRR using :func:`retrieval_mrr` and computes the macro-averaged score.
783779
784780 :param query_labels: For each query, this list contains its class labels
785781 :param candidates_labels: For each query, these lists contain class labels of items ranked by a retrieval model (from most to least relevant)
0 commit comments