Skip to content
New issue

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

no_in_batch_neg_flag设置问题 #1352

Open
meu98 opened this issue Jan 23, 2025 · 0 comments
Open

no_in_batch_neg_flag设置问题 #1352

meu98 opened this issue Jan 23, 2025 · 0 comments

Comments

@meu98
Copy link

meu98 commented Jan 23, 2025

  1. 当train_data仅为一个json文件时,这个时候默认使用了AbsEmbedderCollator类。no_in_batch_neg_flag被默认设置成了False。这种情况下默认是把batch内的所有其他样本当成了负样本吗?如果只想使用自己的构造的负样本。是要直接修改代码吗?还是有其他穿入参数的方式。
  2. 如果默认是no_in_batch_neg_flag=False的情况下,同时我的数据里面也有自己提供的负样本。是否相当于,当前query的负样本是除了数据中已经提供的负样本,还包含了当前batch內的其他query的正样本和负样本?
  3. 我的数据中可能存在比较相似的query,如果把batch內的所有其他样本当成负样本,可能造成伪负样本的问题。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant