forked from UKPLab/sentence-transformers
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
docs
] Heavily extend sampler documentation (UKPLab#2921)
* Heavily extend sampler documentation * Add new Samplers tab in Package Reference * Add "Recommended for losses such as:" in BatchSamplers * Add Usage in BatchSamplers and MultiDatasetBatchSamplers * Add "Recommendations" section to some losses, pointing to specific samplers * Add explanation about custom batch sampler
- Loading branch information
Showing
28 changed files
with
364 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ Sentence Transformer | |
SentenceTransformer | ||
trainer | ||
training_args | ||
sampler | ||
losses | ||
evaluation | ||
datasets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
# Samplers | ||
|
||
## BatchSamplers | ||
```eval_rst | ||
.. autoclass:: sentence_transformers.training_args.BatchSamplers | ||
:members: | ||
``` | ||
|
||
```eval_rst | ||
.. autoclass:: sentence_transformers.sampler.DefaultBatchSampler | ||
:members: | ||
``` | ||
|
||
```eval_rst | ||
.. autoclass:: sentence_transformers.sampler.NoDuplicatesBatchSampler | ||
:members: | ||
``` | ||
|
||
```eval_rst | ||
.. autoclass:: sentence_transformers.sampler.GroupByLabelBatchSampler | ||
:members: | ||
``` | ||
|
||
## MultiDatasetBatchSamplers | ||
```eval_rst | ||
.. autoclass:: sentence_transformers.training_args.MultiDatasetBatchSamplers | ||
:members: | ||
``` | ||
|
||
```eval_rst | ||
.. autoclass:: sentence_transformers.sampler.RoundRobinBatchSampler | ||
:members: | ||
``` | ||
|
||
```eval_rst | ||
.. autoclass:: sentence_transformers.sampler.ProportionalBatchSampler | ||
:members: | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.