Skip to content
Snippets Groups Projects
Commit e9e728f7 authored by Mats Gottenbos's avatar Mats Gottenbos
Browse files

Removed change to parameter tuning in muzero.py

parent 405609e8
No related branches found
No related tags found
No related merge requests found
......@@ -672,27 +672,14 @@ if __name__ == "__main__":
# Parametrization documentation: https://facebookresearch.github.io/nevergrad/parametrization.html
muzero.terminate_workers()
del muzero
# This part has custom edits
budget = 100
parallel_experiments = 5
num_tests = 20
parametrization = nevergrad.p.Dict(
lr_init=nevergrad.p.Log(lower=0.0001, upper=0.1),
discount=nevergrad.p.Log(lower=0.95, upper=0.9999),
stacked_observations=nevergrad.p.Log(lower=1, upper=100).set_integer_casting(),
num_simulations=nevergrad.p.Log(lower=1, upper=200).set_integer_casting(),
batch_size=nevergrad.p.Log(lower=10, upper=200).set_integer_casting(),
checkpoint_interval=nevergrad.p.Log(lower=5, upper=200).set_integer_casting(),
value_loss_weight=nevergrad.p.Log(lower=0.1, upper=0.5),
)
budget = 20
parallel_experiments = 2
lr_init = nevergrad.p.Log(a_min=0.0001, a_max=0.1)
discount = nevergrad.p.Log(lower=0.95, upper=0.9999)
parametrization = nevergrad.p.Dict(lr_init=lr_init, discount=discount)
best_hyperparameters = hyperparameter_search(
game_name, parametrization, budget, parallel_experiments, num_tests
game_name, parametrization, budget, parallel_experiments, 20
)
# End custom edits
muzero = MuZero(game_name, best_hyperparameters)
else:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment