mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
Fix typo in trainer.py (#31048)
This commit is contained in:
parent
98e2d48e9a
commit
66add161dc
@ -3565,7 +3565,7 @@ class Trainer:
|
|||||||
When used with `load_best_model_at_end`, make sure `metric_for_best_model` references exactly one
|
When used with `load_best_model_at_end`, make sure `metric_for_best_model` references exactly one
|
||||||
of the datasets. If you, for example, pass in `{"data1": data1, "data2": data2}` for two datasets
|
of the datasets. If you, for example, pass in `{"data1": data1, "data2": data2}` for two datasets
|
||||||
`data1` and `data2`, you could specify `metric_for_best_model="eval_data1_loss"` for using the
|
`data1` and `data2`, you could specify `metric_for_best_model="eval_data1_loss"` for using the
|
||||||
loss on `data1` and `metric_for_best_model="eval_data1_loss"` for the loss on `data2`.
|
loss on `data1` and `metric_for_best_model="eval_data2_loss"` for the loss on `data2`.
|
||||||
|
|
||||||
</Tip>
|
</Tip>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user