Skip to content

Commit

Permalink
Fix function typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Mar 16, 2023
1 parent cef9bed commit b5e5ad6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion torchgeo/trainers/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def training_step(self, *args: Any, **kwargs: Any) -> Tensor:

return cast(Tensor, loss)

def on_training_epoch_end(self) -> None:
def on_train_epoch_end(self) -> None:
"""Logs epoch-level training metrics."""
self.log_dict(self.train_metrics.compute())
self.train_metrics.reset()
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/trainers/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def training_step(self, *args: Any, **kwargs: Any) -> Tensor:

return loss

def on_training_epoch_end(self) -> None:
def on_train_epoch_end(self) -> None:
"""Logs epoch-level training metrics."""
self.log_dict(self.train_metrics.compute())
self.train_metrics.reset()
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/trainers/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def training_step(self, *args: Any, **kwargs: Any) -> Tensor:

return cast(Tensor, loss)

def on_training_epoch_end(self) -> None:
def on_train_epoch_end(self) -> None:
"""Logs epoch level training metrics."""
self.log_dict(self.train_metrics.compute())
self.train_metrics.reset()
Expand Down

0 comments on commit b5e5ad6

Please sign in to comment.