@@ -48,30 +48,30 @@ def run_pacman(bias,
4848
4949
5050pbounds = {
51- "bias" : (- 10 , 10 ),
51+ "bias" : (- 3 , 3 ),
5252 "closest_weak_ghost_0" : (- 10 , 10 ),
53- "closest_weak_ghost_1" : (- 10 , 10 ),
54- "strong_ghost_1_step_0" : (- 10 , 10 ),
55- "strong_ghost_1_step_1" : (- 10 , 10 ),
56- "strong_ghost_2_step_0" : (- 10 , 10 ),
57- "strong_ghost_2_step_1" : (- 10 , 10 ),
58- "weak_ghost_0" : (- 10 , 10 ),
59- "weak_ghost_1" : (- 10 , 10 ),
60- "eats_capsule" : (- 10 , 10 ),
61- "eats_food" : (- 10 , 10 ),
62- "closest_capsule_0" : (- 10 , 10 ),
63- "closest_capsule_1" : (- 10 , 10 ),
64- "closest_food_0" : (- 10 , 10 ),
65- "closest_food_1" : (- 10 , 10 )
53+ "closest_weak_ghost_1" : (- 7 , - 5 ),
54+ "strong_ghost_1_step_0" : (- 8 , - 4 ),
55+ "strong_ghost_1_step_1" : (- 10 , 0 ),
56+ "strong_ghost_2_step_0" : (- 10 , 5 ),
57+ "strong_ghost_2_step_1" : (- 5 , 5 ),
58+ "weak_ghost_0" : (- 5 , 5 ),
59+ "weak_ghost_1" : (- 5 , 10 ),
60+ "eats_capsule" : (0 , 10 ),
61+ "eats_food" : (0 , 10 ),
62+ "closest_capsule_0" : (- 5 , 10 ),
63+ "closest_capsule_1" : (- 1 , 5 ),
64+ "closest_food_0" : (0 , 10 ),
65+ "closest_food_1" : (- 4 , 2 )
6666}
6767
6868optimizer = BayesianOptimization (
6969 f = run_pacman ,
7070 pbounds = pbounds ,
71- random_state = 1 ,
71+ random_state = 4 ,
7272)
7373
7474optimizer .maximize (
75- init_points = 2 ,
76- n_iter = 3 ,
75+ init_points = 500 ,
76+ n_iter = 6000 ,
7777)
0 commit comments