Skip to content

Commit 8dcf6a9

Browse files
fix
1 parent a15b18c commit 8dcf6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/composer_model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ A full example of a validation implementation would be:
150150
151151
def get_metrics(self, is_train=False):
152152
# defines which metrics to use in each phase of training
153-
return {'MulticlassAccuracy': self.train_accuracy} if train else {'MulticlassAccuracy': self.val_accuracy}
153+
return {'MulticlassAccuracy': self.train_accuracy} if is_train else {'MulticlassAccuracy': self.val_accuracy}
154154
155155
.. note::
156156

0 commit comments

Comments
 (0)