Skip to content

Commit

Permalink
Update outdated docs links
Browse files Browse the repository at this point in the history
Allow inheriting the Transformer class (#2810)

[`feat`] Add hard negatives mining utility (#2768)

* Add hard negatives mining utility

* Add example datasets/models for hard negative mining tip

* Update phrasing in dataset overview

[chore] add test for NoDuplicatesBatchSampler (#2795)

* add test for NoDuplicatesBatchSampler

* formatting

* simplify tests

[chore] Add test for RoundrobinBatchSampler (#2798)

* Add test for RoundrobinBatchSampler

* fix test

* improve RoundRobinBatchSampler and add additional test

* Make datasets in ConcatDataset different sizes

As the real "use case" of the RoundRobin sampler is to avoid sampling from one dataset more than from another. This is best tested when the datasets have different sizes.

---------

Co-authored-by: Tom Aarsen <[email protected]>

[feat] Improve GroupByLabelBatchSampler (#2788)

* Improve GroupByLabelBatchSampler

* small fix

* improve test

* Update sentence_transformers/sampler.py

Co-authored-by: Tom Aarsen <[email protected]>

* fix sampler and add unit test

* fix comment

* remove .DS_Store

* rm DS_Store

* change self.groups statement

* move to damplers dir

* Update sentence_transformers/sampler.py

Co-authored-by: Tom Aarsen <[email protected]>

* Add typing

---------

Co-authored-by: Tom Aarsen <[email protected]>
Co-authored-by: Tom Aarsen <[email protected]>

[`chore`] Clean-up `.gitignore` (#2799)

add test coverage command

add to workflow

fix cicd

fix cicd

fix

leave cicd untouched

fix gitignore

fix gitignore

update gitignore

update gitignore

fix gitignore

fix gitignor
  • Loading branch information
tomaarsen authored and fpgmaas committed Jul 9, 2024
1 parent f1069b0 commit 30064e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Binary file added .coverage.florians-mbp.home.23017.XoCWjfAx
Binary file not shown.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ quality:
style:
ruff check --fix
ruff format

test:
pytest

test-cov:
pytest --cov-report term --cov-report=html --cov=sentence_transformers
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"accelerate>=0.20.3",
"pre-commit",
"pytest",
"pytest-cov",
"ruff>=0.3.0",
],
},
Expand Down

0 comments on commit 30064e2

Please sign in to comment.