From 694e72159cf026b838ba00333ddf413185b4fb4f Mon Sep 17 00:00:00 2001 From: Xiaohan Zhang Date: Tue, 5 Nov 2024 12:11:22 -0800 Subject: [PATCH] Fix typo in trainer doc (#3702) --- docs/source/composer_model.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/composer_model.rst b/docs/source/composer_model.rst index 5c628f9633..6e890895a5 100644 --- a/docs/source/composer_model.rst +++ b/docs/source/composer_model.rst @@ -150,7 +150,7 @@ A full example of a validation implementation would be: def get_metrics(self, is_train=False): # defines which metrics to use in each phase of training - return {'MulticlassAccuracy': self.train_accuracy} if train else {'MulticlassAccuracy': self.val_accuracy} + return {'MulticlassAccuracy': self.train_accuracy} if is_train else {'MulticlassAccuracy': self.val_accuracy} .. note::