Skip to content

Commit

Permalink
Fix docstring (Lightning-AI#2884)
Browse files Browse the repository at this point in the history
* Fix docstring

"mean absolute loss" rather than "root mean absolute loss"

* minor docstring fix

Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
  • Loading branch information
krzysztofwos and rohitgr7 committed Aug 8, 2020
1 parent f798cff commit 6ebe0d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/callbacks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def on_sanity_check_end(self, trainer, pl_module):
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):
Expand Down
2 changes: 1 addition & 1 deletion pytorch_lightning/metrics/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def forward(self, pred: torch.Tensor, target: torch.Tensor) -> torch.Tensor:

class MAE(Metric):
"""
Computes the root mean absolute loss or L1-loss.
Computes the mean absolute loss or L1-loss.
Example:
Expand Down

0 comments on commit 6ebe0d7

Please sign in to comment.