mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
docs: Resolve incorrect type typo in trainer methods (#22316)
Resolve incorrect type typo in trainer methods
This commit is contained in:
parent
0f68a7f408
commit
f48d3314e4
@ -2915,7 +2915,7 @@ class Trainer:
|
||||
Pass a dataset if you wish to override `self.eval_dataset`. If it is a [`~datasets.Dataset`], columns
|
||||
not accepted by the `model.forward()` method are automatically removed. It must implement the `__len__`
|
||||
method.
|
||||
ignore_keys (`Lst[str]`, *optional*):
|
||||
ignore_keys (`List[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 (`str`, *optional*, defaults to `"eval"`):
|
||||
@ -2980,7 +2980,7 @@ class Trainer:
|
||||
test_dataset (`Dataset`):
|
||||
Dataset to run the predictions on. If it is an `datasets.Dataset`, columns not accepted by the
|
||||
`model.forward()` method are automatically removed. Has to implement the method `__len__`
|
||||
ignore_keys (`Lst[str]`, *optional*):
|
||||
ignore_keys (`List[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 (`str`, *optional*, defaults to `"test"`):
|
||||
@ -3314,7 +3314,7 @@ class Trainer:
|
||||
argument `labels`. Check your model's documentation for all accepted arguments.
|
||||
prediction_loss_only (`bool`):
|
||||
Whether or not to return the loss only.
|
||||
ignore_keys (`Lst[str]`, *optional*):
|
||||
ignore_keys (`List[str]`, *optional*):
|
||||
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
|
||||
gathering predictions.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user