mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
change metric_key_prefix in seq2seq_trainer.py (#15099)
It solves the problem that metric_key_prefix is different from trainer.
This commit is contained in:
parent
c4fa908fa9
commit
285131bfb4
@ -73,7 +73,7 @@ class Seq2SeqTrainer(Trainer):
|
||||
self,
|
||||
test_dataset: Dataset,
|
||||
ignore_keys: Optional[List[str]] = None,
|
||||
metric_key_prefix: str = "eval",
|
||||
metric_key_prefix: str = "test",
|
||||
max_length: Optional[int] = None,
|
||||
num_beams: Optional[int] = None,
|
||||
) -> PredictionOutput:
|
||||
|
Loading…
Reference in New Issue
Block a user