Skip to content

Commit

Permalink
Fix Trailing Zeroes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vast342 committed Dec 27, 2023
1 parent bfc6c93 commit 1f9eed9
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: {spsa.t / cutechess.games} ({(avg_time / (spsa.t / cutechess.games - start_t)):.2f}s per iter)")
f"iterations: {int(spsa.t / cutechess.games)} ({(avg_time / (spsa.t / cutechess.games - start_t)):.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: {spsa.t / cutechess.games} ({(avg_time / (spsa.t / cutechess.games - start_t)):.2f}s per iter)")
f"iterations: {int(spsa.t / cutechess.games)} ({(avg_time / (spsa.t / cutechess.games - start_t)):.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 1f9eed9

Please sign in to comment.