Skip to content

Commit

Permalink
Fix outdated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Sep 18, 2024
1 parent 6a0f3fe commit a9bb3f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/setfit/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def __init__(
"""Generates positive and negative text pairs for contrastive learning.
Args:
examples (InputExample): text and labels in a text transformer dataclass
sentences (List[str]): text sentences to generate pairs from
labels (List[Union[int, float]]): labels for each sentence
multilabel: set to process "multilabel" labels array
sampling_strategy: "unique", "oversampling", or "undersampling"
num_iterations: if provided explicitly sets the number of pairs to be generated
Expand Down

0 comments on commit a9bb3f5

Please sign in to comment.