From 9d50e99bfb43581871263133184ac7f28f9e4f17 Mon Sep 17 00:00:00 2001 From: x54-729 <17307130121@fudan.edu.cn> Date: Fri, 15 Apr 2022 06:57:31 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9evaluate=5Fdataloader?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastNLP/core/controllers/trainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastNLP/core/controllers/trainer.py b/fastNLP/core/controllers/trainer.py index 4ff8ba80..f26d841c 100644 --- a/fastNLP/core/controllers/trainer.py +++ b/fastNLP/core/controllers/trainer.py @@ -219,10 +219,10 @@ class Trainer(TrainerEventTrigger): """ 设置内部的 Evaluator """ if metrics is None and evaluate_dataloaders is not None: - raise ValueError("You have set 'validate_dataloader' but forget to set 'metrics'.") + raise ValueError("You have set 'evaluate_dataloader' but forget to set 'metrics'.") if metrics is not None and evaluate_dataloaders is None: - raise ValueError("You have set 'metrics' but forget to set 'validate_dataloader'.") + raise ValueError("You have set 'metrics' but forget to set 'evaluate_dataloader'.") self.evaluator = None self.monitor = monitor