fixed typo (#10861)

This commit is contained in:
Bhadresh Savani 2021-03-23 17:45:28 +05:30 committed by GitHub
parent e21f89f64c
commit eb330e8904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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::