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

Fix docstring #366

Merged
merged 3 commits into from
Apr 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/setfit/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SetFitHead(models.Dense):
out_features (`int`, defaults to `2`):
The number of targets. If set `out_features` to 1 for binary classification, it will be changed to 2 as 2-class classification.
temperature (`float`, defaults to `1.0`):
A logits' scaling factor. Higher values makes the model less confident and higher values makes
A logits' scaling factor. Higher values make the model less confident and lower values make
it more confident.
eps (`float`, defaults to `1e-5`):
A value for numerical stability when scaling logits.
Expand Down Expand Up @@ -176,8 +176,8 @@ def forward(
make sure to store embeddings under the key: 'sentence_embedding'
and the outputs will be under the key: 'prediction'.
temperature (`float`, *optional*):
A logits' scaling factor. Higher values makes the model less
confident and higher values makes it more confident.
A logits' scaling factor. Higher values make the model less
confident and lower values make it more confident.
Will override the temperature given during initialization.
Returns:
[`Dict[str, torch.Tensor]` or `Tuple[torch.Tensor]`]
Expand Down