Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlt3 committed Feb 24, 2022
1 parent e0ad760 commit c911672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_change(self) -> str:
if self.value > self.start_val:
return f"+{self.value - self.start_val:.2f}"
elif self.value < self.start_val:
return f"-{self.start_val - self.start_val:2f}"
return f"-{self.start_val - self.value:2f}"
else:
return f"+-0"

Expand Down

0 comments on commit c911672

Please sign in to comment.