From 8dcf6a974b69657283263c7ccc70dc0ddfbcf9af Mon Sep 17 00:00:00 2001 From: xiaohanzhangcmu Date: Tue, 5 Nov 2024 09:31:02 -0800 Subject: [PATCH] fix --- 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::