Skip to content

Commit 07ef102

Browse files
committed
Fix tic tac toe action to string
1 parent e21c90c commit 07ef102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

games/tictactoe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def action_to_string(self, action_number):
234234
Returns:
235235
String representing the action.
236236
"""
237-
row = 3 - action_number // 3
237+
row = action_number // 3 + 1
238238
col = action_number % 3 + 1
239239
return f"Play row {row}, column {col}"
240240

muzero.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def hyperparameter_search(
634634
lr_init = nevergrad.p.Log(a_min=0.0001, a_max=0.1)
635635
discount = nevergrad.p.Log(lower=0.95, upper=0.9999)
636636
parametrization = nevergrad.p.Dict(
637-
lr_init=lr_init, discount=discount, training_steps=500
637+
lr_init=lr_init, discount=discount
638638
)
639639
best_hyperparameters = hyperparameter_search(
640640
game_name, parametrization, budget, parallel_experiments, 20

0 commit comments

Comments
 (0)