Skip to content

Commit

Permalink
Fix typo in trainer doc (#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaohanZhangCMU authored Nov 5, 2024
1 parent 1053702 commit 694e721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/composer_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit 694e721

Please sign in to comment.