sentence-transformers
[`feat`] Update mine_hard_negatives to using a full corpus and multiple positives
#2848
Merged

[`feat`] Update mine_hard_negatives to using a full corpus and multiple positives #2848

ArthurCamara
updated mine_hard_negatives method to include a seperate corpus for m…
8e5927c8
tomaarsen Run 'make check'
bcac9632
tomaarsen Update "corpus" to just a list of strings
e63938fa
tomaarsen Prevent duplicate embeddings if no separate corpus
0736190d
tomaarsen Deduplicate corpus
46ae230b
tomaarsen Skip rescoring positive pairs via pos_to_corpus_indices instead
aba1fb77
ArthurCamara Add a mine_hard_negatives_from_corpus util
ecbfc3ca
ArthurCamara Merge pull request #1 from ChrisGeishauser/mine_hard_negatives_with_c…
1d5c985a
ArthurCamara Speedup pos_to_corpus_indices for large corpora
344b6b4e
ArthurCamara Fix range_max by number of max_positives in dataset
2e865703
ArthurCamara encode in chunks, ensure at least one positive per query always
330ea40b
ArthurCamara Hard_negative_mining with corpus and multiple positives is possible
d75282f1
ArthurCamara docstring
0962fe32
ArthurCamara Fix for random sampling
9f00605b
ArthurCamara fix for return_triplets=False
adcd06a5
ArthurCamara Merge branch 'master' into hard_negatives_from_corpus
b5ce9391
ArthurCamara Typo on list
defbfe50
ArthurCamara Fix bug with multiple positives. More efficient creation of some tens…
33c74c68
ArthurCamara Fix offset of positives scoring with multiple chunks
83bd3871
ArthurCamara fix pytorch copy warning
c15c7a68
tomaarsen
tomaarsen commented on 2024-09-11
tomaarsen
tomaarsen commented on 2024-09-11
tomaarsen Only embed each text once; no need for chunking if convert_to_numpy=True
93b4d698
tomaarsen Undo unintended changes
691917e1
tomaarsen
tomaarsen tomaarsen changed the title Update mine_hard_negatives to using a full corpus and multiple positives [`feat`] Update mine_hard_negatives to using a full corpus and multiple positives 1 year ago
tomaarsen Fix mismatch in anchor/positive and negatives if multiple positives p…
5320a23f
tomaarsen Don't repeat positive_scores as it inflates the positive score counts
762c0fe7
tomaarsen Remove the "Count" for Difference as it's rather confusing
0d4d73e3
tomaarsen
tomaarsen tomaarsen merged a3f2236d into master 1 year ago
ArthurCamara
tomaarsen
tomaarsen
ArthurCamara
tomaarsen
ArthurCamara
ArthurCamara
tomaarsen
ArthurCamara ArthurCamara deleted the hard_negatives_from_corpus branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone