Skip to content

Commit 6ebe0d7

Browse files
Fix docstring (Lightning-AI#2884)
* Fix docstring "mean absolute loss" rather than "root mean absolute loss" * minor docstring fix Co-authored-by: rohitgr7 <[email protected]>
1 parent f798cff commit 6ebe0d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pytorch_lightning/callbacks/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ def on_sanity_check_end(self, trainer, pl_module):
4747
pass
4848

4949
def on_train_batch_start(self, trainer, pl_module, batch, batch_idx, dataloader_idx):
50-
"""Called when the validation batch begins."""
50+
"""Called when the train batch begins."""
5151
pass
5252

5353
def on_train_batch_end(self, trainer, pl_module, batch, batch_idx, dataloader_idx):
54-
"""Called when the validation batch ends."""
54+
"""Called when the train batch ends."""
5555
pass
5656

5757
def on_train_epoch_start(self, trainer, pl_module):

pytorch_lightning/metrics/regression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def forward(self, pred: torch.Tensor, target: torch.Tensor) -> torch.Tensor:
101101

102102
class MAE(Metric):
103103
"""
104-
Computes the root mean absolute loss or L1-loss.
104+
Computes the mean absolute loss or L1-loss.
105105
106106
Example:
107107

0 commit comments

Comments
 (0)