Skip to content

Commit 6618e61

Browse files
Update BootstrapFewShot.md
1 parent 0c31cf8 commit 6618e61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/api/optimizers/BootstrapFewShot.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The constructor initializes the `BootstrapFewShot` class and sets up parameters
1010

1111
```python
1212
class BootstrapFewShot(Teleprompter):
13-
def __init__(self, metric=None, teacher_settings={}, max_bootstrapped_demos=4, max_labeled_demos=16, max_rounds=1):
13+
def __init__(self, metric=None, metric_threshold=None, teacher_settings={}, max_bootstrapped_demos=4, max_labeled_demos=16, max_rounds=1, max_errors=5):
1414
self.metric = metric
1515
self.teacher_settings = teacher_settings
1616

@@ -21,10 +21,12 @@ class BootstrapFewShot(Teleprompter):
2121

2222
**Parameters:**
2323
- `metric` (_callable_, _optional_): Metric function to evaluate examples during bootstrapping. Defaults to `None`.
24+
- `metric_threshold` (_float_, _optional_): Score threshold for metric to determine successful example. Defaults to `None`.
2425
- `teacher_settings` (_dict_, _optional_): Settings for teacher predictor. Defaults to empty dictionary.
2526
- `max_bootstrapped_demos` (_int_, _optional_): Maximum number of bootstrapped demonstrations per predictor. Defaults to 4.
2627
- `max_labeled_demos` (_int_, _optional_): Maximum number of labeled demonstrations per predictor. Defaults to 16.
2728
- `max_rounds` (_int_, _optional_): Maximum number of bootstrapping rounds. Defaults to 1.
29+
- `max_errors` (_int_): Maximum errors permitted during evaluation. Halts run with the latest error message. Defaults to 5. Configure to 1 if no evaluation run error is desired.
2830

2931
### Method
3032

0 commit comments

Comments
 (0)