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
eb330e89
Unverified
Commit
eb330e89
authored
Mar 23, 2021
by
Bhadresh Savani
Committed by
GitHub
Mar 23, 2021
Browse files
fixed typo (#10861)
parent
e21f89f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/transformers/trainer.py
src/transformers/trainer.py
+3
-3
No files found.
src/transformers/trainer.py
View file @
eb330e89
...
...
@@ -1722,7 +1722,7 @@ class Trainer:
return
output
.
metrics
def
predict
(
self
,
test_dataset
:
Dataset
,
ignore_keys
:
Optional
[
List
[
str
]]
=
None
,
metric_key_prefix
:
str
=
"
eval
"
self
,
test_dataset
:
Dataset
,
ignore_keys
:
Optional
[
List
[
str
]]
=
None
,
metric_key_prefix
:
str
=
"
test
"
)
->
PredictionOutput
:
"""
Run prediction and returns predictions and potential metrics.
...
...
@@ -1737,9 +1737,9 @@ class Trainer:
ignore_keys (:obj:`Lst[str]`, `optional`):
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.
metric_key_prefix (:obj:`str`, `optional`, defaults to :obj:`"
eval
"`):
metric_key_prefix (:obj:`str`, `optional`, defaults to :obj:`"
test
"`):
An optional prefix to be used as the metrics key prefix. For example the metrics "bleu" will be named
"
eval
_bleu" if the prefix is "
eval
" (default)
"
test
_bleu" if the prefix is "
test
" (default)
.. note::
...
...
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