Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2a16d8b2
Unverified
Commit
2a16d8b2
authored
May 03, 2023
by
Manuel
Committed by
GitHub
May 03, 2023
Browse files
improve unclear documentation (#23123)
parent
a0bd4647
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/transformers/trainer_callback.py
src/transformers/trainer_callback.py
+2
-1
No files found.
src/transformers/trainer_callback.py
View file @
2a16d8b2
...
...
@@ -534,7 +534,8 @@ class EarlyStoppingCallback(TrainerCallback):
specified metric must improve to satisfy early stopping conditions. `
This callback depends on [`TrainingArguments`] argument *load_best_model_at_end* functionality to set best_metric
in [`TrainerState`].
in [`TrainerState`]. Note that if the [`TrainingArguments`] argument *save_steps* differs from *eval_steps*, the
early stopping will not occur until the next save step.
"""
def
__init__
(
self
,
early_stopping_patience
:
int
=
1
,
early_stopping_threshold
:
Optional
[
float
]
=
0.0
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment