Skip to content

Commit

Permalink
Merge branch 'bugfix/dividebyzero-crash' into lynx
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Jan 2, 2024
2 parents b4690c3 + 0acf1e9 commit 21a9227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def main():
save_state(spsa)

print(
f"iterations: {int(spsa.t / cutechess.games)} ({(avg_time / (spsa.t / cutechess.games - start_t / cutechess.games)):.2f}s per iter)")
f"iterations: {int(spsa.t / cutechess.games)} ({((avg_time / (spsa.t - start_t)) * cutechess.games):.2f}s per iter)")
print(
f"games: {spsa.t} ({(avg_time / (spsa.t - start_t)):.2f}s per game)")
for param in spsa.params:
Expand All @@ -94,7 +94,7 @@ def main():
save_state(spsa)
print("Final results: ")
print(
f"iterations: {int(spsa.t / cutechess.games)} ({(avg_time / (spsa.t / cutechess.games - start_t / cutechess.games)):.2f}s per iter)")
f"iterations: {int(spsa.t / cutechess.games)} ({((avg_time / (spsa.t - start_t)) * cutechess.games):.2f}s per iter)")
print(
f"games: {spsa.t} ({(avg_time / (spsa.t - start_t)):.2f}s per game)")
print("Final parameters: ")
Expand Down

0 comments on commit 21a9227

Please sign in to comment.