Skip to content

Commit

Permalink
Fix time step counting
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlt3 committed Jul 28, 2022
1 parent 2e1951e commit 5fabaf8
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 @@ -65,7 +65,7 @@ def __init__(
self.t = 0

def step(self):
self.t += 1
self.t += self.cutechess.games
a_t = self.spsa.a / (self.t + self.spsa.A) ** self.spsa.alpha
c_t = self.spsa.c / self.t ** self.spsa.gamma

Expand Down

0 comments on commit 5fabaf8

Please sign in to comment.