Comments (1)
排序的指标和检索的指标在我的理解里没有什么不同,因为检索本质就是排序。只是不同的指标,衡量的使用场景不一样。mAP MRR nDCG 在 T2Ranking 数据集上,nDCG 会更好,因为有不同的关联分数。另外,无论是 bier 自己的实现还是 trec_eval 的实现,默认参数都是把大于等于 1 的当作相关,所以 qrels 中 0 分的样本是允许的,或者说是没有任何影响的,会被过滤掉。
至于 mAP@1 和 MRR@1 是不是应该相等?我认为如果是标准实现或者公认的算法上来讲,应该是相同的。 但 trec_eval 的实现上,这两者并不相等,具体原因你看下面的代码就明白了:
import pytrec_eval
import json
qrel = {
'q1': {
'd1': 0,
'd2': 1,
'd3': 0,
'd4': 1
},
}
run = {
'q1': {
'd1': 1.0,
'd2': 3.0,
'd3': 1.5,
'd4': 3.0,
}
}
evaluator = pytrec_eval.RelevanceEvaluator(
qrel, {'map_cut.1', 'ndcg'}, relevance_level=1)
print(json.dumps(evaluator.evaluate(run), indent=1))
输出:
{
"q1": {
"ndcg": 1.0,
"map_cut_1": 0.5
}
}
按照标准的实现,map_cut_1 应该是 1 才对,但 trec_val 的实现没有在分母取 k 和 正例的最小值。
综上,MTEB-zh 的实现是符合通用标准或者说共识的,ReRanking 和 Retrieval 的超参数选择和 main score 也是合理的。不知道上面的回答,有没有解决您的疑问?
指标这个东西确实麻烦,需要深入代码和实现才能搞清楚,我当时也是看了好长时间,更别提 trec_val 还是 c++ 写的....
from uniem.
Related Issues (20)
- m3e模型支持openai的接口调用方式吗 HOT 1
- 无法使用图嵌入 HOT 1
- 关于huggingface方法调用 HOT 1
- sentence-transformer调用huggingface模型 HOT 1
- 负采样 HOT 3
- 请教贴:文本最大长度 HOT 5
- 进行评测时会报错,分叉可能会导致死锁. HOT 1
- 求一份评测数据集 HOT 1
- 微调后模型保存和load的问题 HOT 3
- m3e-large数据集的相关问题 HOT 1
- m3e训练的时候使用的数据集是hugg上面列出的数据集,训练和测试集和验证集一起用来训练了吗? HOT 1
- 请问微调之后的模型如何支持C_MTEB数据集上的评测呢 HOT 2
- 实际测试 PairInBatchNegSoftmaxContrastLoss和PairInBatchNegCoSentLoss的值是一样的 HOT 1
- 转onnx问题 HOT 1
- 能不能说明一下显卡要求啊? HOT 3
- fintuner如何使用gpu? HOT 1
- 问题 HOT 3
- 代码跑着跑着就挂了,CUDA out of memory HOT 1
- Loss固定不变或者上升 HOT 2
- M3E如何指定为GPU训练,而不是CPU训练? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uniem.