From 6ebe0d7266fe29104f4c68dd9143326132885a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Wo=C5=9B?= Date: Sat, 8 Aug 2020 20:58:18 +0900 Subject: [PATCH] Fix docstring (#2884) * Fix docstring "mean absolute loss" rather than "root mean absolute loss" * minor docstring fix Co-authored-by: rohitgr7 --- pytorch_lightning/callbacks/base.py | 4 ++-- pytorch_lightning/metrics/regression.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytorch_lightning/callbacks/base.py b/pytorch_lightning/callbacks/base.py index b804241aa1..f241318fbf 100644 --- a/pytorch_lightning/callbacks/base.py +++ b/pytorch_lightning/callbacks/base.py @@ -47,11 +47,11 @@ class Callback(abc.ABC): pass def on_train_batch_start(self, trainer, pl_module, batch, batch_idx, dataloader_idx): - """Called when the validation batch begins.""" + """Called when the train batch begins.""" pass def on_train_batch_end(self, trainer, pl_module, batch, batch_idx, dataloader_idx): - """Called when the validation batch ends.""" + """Called when the train batch ends.""" pass def on_train_epoch_start(self, trainer, pl_module): diff --git a/pytorch_lightning/metrics/regression.py b/pytorch_lightning/metrics/regression.py index a2cbaaf4f8..1edb388fe2 100644 --- a/pytorch_lightning/metrics/regression.py +++ b/pytorch_lightning/metrics/regression.py @@ -101,7 +101,7 @@ class RMSE(Metric): class MAE(Metric): """ - Computes the root mean absolute loss or L1-loss. + Computes the mean absolute loss or L1-loss. Example: