forked from Marker-Inc-Korea/AutoRAG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MAP (Mean Average Precision) retrieval metric (Marker-Inc-Korea#401)
* add mrr not complete just commit * add retrieval_ndcg_metric * add retrieval_mrr_metric * use hits in ndcg * add next function at mrr * edit ndcg solution * change logic ndcg * change logic mrr * add metric funcs * add metric funcs * just commit for merge * add retrieval map --------- Co-authored-by: Jeffrey (Dongkyu) Kim <vkehfdl1@gmail.com>
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .generation import bleu, meteor, rouge, sem_score, g_eval, bert_score | ||
from .retrieval import retrieval_f1, retrieval_recall, retrieval_precision, retrieval_mrr, retrieval_ndcg | ||
from .retrieval import retrieval_f1, retrieval_recall, retrieval_precision, retrieval_mrr, retrieval_ndcg, retrieval_map | ||
from .retrieval_contents import retrieval_token_f1, retrieval_token_precision, retrieval_token_recall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters