Skip to content

Commit

Permalink
Merge pull request #197 from MannLabs/fix-lr-scheduler-docstring
Browse files Browse the repository at this point in the history
fix return type in docstring
  • Loading branch information
jalew188 authored Aug 26, 2024
2 parents 9cb8dd8 + 61a7807 commit 2472b33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions peptdeep/model/model_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ def step(self, epoch: int, loss: float):
"""
raise NotImplementedError

def get_last_lr(self) -> float:
def get_last_lr(self) -> List[float]:
"""
Get the last learning rate.
Returns
-------
float
List[float]
The last learning rate.
"""
raise NotImplementedError
Expand Down Expand Up @@ -91,13 +91,13 @@ def step(self, epoch: int = None, loss=None):
"""
return self.lambda_lr.step()

def get_last_lr(self) -> float:
def get_last_lr(self) -> List[float]:
"""
Get the last learning rate.
Returns
-------
float
List[float]
The last learning rate.
"""
return self.lambda_lr.get_last_lr()
Expand Down

0 comments on commit 2472b33

Please sign in to comment.