From 626116b7d76efef5137c3b4a92e64e3bb57a6882 Mon Sep 17 00:00:00 2001 From: Sorami Hisamoto Date: Mon, 25 Jan 2021 20:40:03 +0900 Subject: [PATCH] Fix a typo in Trainer.hyperparameter_search docstring (#9762) `compute_objectie` => `compute_objective` --- src/transformers/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py index 7519159033..037037780c 100755 --- a/src/transformers/trainer.py +++ b/src/transformers/trainer.py @@ -1115,7 +1115,7 @@ class Trainer: ) -> BestRun: """ Launch an hyperparameter search using ``optuna`` or ``Ray Tune``. The optimized quantity is determined by - :obj:`compute_objectie`, which defaults to a function returning the evaluation loss when no metric is provided, + :obj:`compute_objective`, which defaults to a function returning the evaluation loss when no metric is provided, the sum of all metrics otherwise. .. warning::