We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`def beir_evaluation():
actual_contexts_dict = {'0': {'0': 1, '1': 1, '2': 1, '3': 1, '4': 1, '5': 1, '6': 1, '7': 1, '8': 1, '9': 1} } results_dict = {'0': {'0': 1, '1': 1, '2': 1, '3': 1, '4': 1, '5': 1, '6': 1, '7': 1, '8': 1, '9': 1} } # Evaluate retrieval metrics ndcg, map_score, recall, precision = EvaluateRetrieval.evaluate( actual_contexts_dict, results_dict, k_values=[10] ) mrr = EvaluateRetrieval.evaluate_custom(actual_contexts_dict, results_dict, [10], metric="mrr") # Print evaluation results print(f"\nRecall@10 : {recall['Recall@10']:.2f}") print(f"Precision@10: {precision['P@10']:.2f}") print(f"\nNDCG@10 : {ndcg['NDCG@10']:.2f}") print(f"MAP@10 : {map_score['MAP@10']:.2f}") print(f"MRR@10 : {mrr['MRR@10']:.2f}")`
Recall@10 : 0.90 Precision@10: 0.90
NDCG@10 : 0.94 MAP@10 : 0.90 MRR@10 : 1.00
This is clearly incorrect as everything should be 1. Please can this be resolved
The text was updated successfully, but these errors were encountered:
from beir.retrieval.evaluation import EvaluateRetrieval def beir_evaluation(): actual_contexts_dict = {'0':{'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}, '1':{'10': 10, '11': 11, '12': 12, '13': 13, '14': 14, '15': 15, '16': 16, '17': 17, '18': 18, '19': 19} } results_dict = {'0':{'0': 0, '1': 0, '2': 0, '3': 0, '4': 0, '5': 0, '6': 0, '7': 0, '8': 0, '9': 0}, '1':{'10': 10, '11': 11, '12': 12, '13': 13, '14': 14, '15': 15, '16': 16, '17': 17, '18': 18, '19': 19} } # Evaluate retrieval metrics ndcg, map_score, recall, precision = EvaluateRetrieval.evaluate( actual_contexts_dict, results_dict, k_values=[10] ) mrr = EvaluateRetrieval.evaluate_custom(actual_contexts_dict, results_dict, [10], metric="mrr") # Print evaluation results print(f"\nRecall@10 : {recall['Recall@10']:.2f}") print(f"Precision@10: {precision['P@10']:.2f}") print(f"\nNDCG@10 : {ndcg['NDCG@10']:.2f}") print(f"MAP@10 : {map_score['MAP@10']:.2f}") print(f"MRR@10 : {mrr['MRR@10']:.2f}") # Run the evaluation beir_evaluation()
Recall@10 : 1.00 Precision@10: 0.95
NDCG@10 : 1.00 MAP@10 : 1.00 MRR@10 : 1.00
Why is precision@10 not 1.00 ?
Sorry, something went wrong.
No branches or pull requests
`def beir_evaluation():
Recall@10 : 0.90
Precision@10: 0.90
NDCG@10 : 0.94
MAP@10 : 0.90
MRR@10 : 1.00
This is clearly incorrect as everything should be 1. Please can this be resolved
The text was updated successfully, but these errors were encountered: