feat(*): Update at 1 billion timesteps

This commit is contained in:
Josh Creek
2023-10-12 21:27:13 +01:00
parent a427c1f58d
commit 88addb1cf5
2 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -80,7 +80,7 @@ This is to try to get the bot to gain experience in other areas of the game now
#### ~500 million steps #### ~500 million steps
After 528 million steps I changed things again, switching to 1v1 instead of 3v3, and changing the rewards as below: After 528 million steps I changed things again, changing the rewards as below:
- VelocityBallToGoalReward -> 10 - VelocityBallToGoalReward -> 10
- EventReward -> 10 - EventReward -> 10
@@ -90,7 +90,13 @@ After 528 million steps I changed things again, switching to 1v1 instead of 3v3,
#### ~1 billion steps #### ~1 billion steps
The bot should now have acceptable mechanics and a vague understanding of 1v1 strategies. The bot should now have acceptable mechanics and a vague understanding of 3v3 strategies.
However, I noticed that there's a lot of dead time, where it's not necessarily driving towards the ball or preparing to defend or receive a pass, so I changed things again, changing the rewards as below:
- VelocityPlayerToBallReward -> 50
- LiuDistanceBallToGoalReward -> 20
- RewardIfClosestToBall -> 10
### Stage 2 ### Stage 2
+2 -2
View File
@@ -61,7 +61,7 @@ if __name__ == "__main__": # Required for multiprocessing
def exit_save(model): def exit_save(model):
model.save("models/exit_save") model.save("models/exit_save")
team_size = 1 team_size = 3
def get_match(): # Need to use a function so that each instance can call it and produce their own objects def get_match(): # Need to use a function so that each instance can call it and produce their own objects
return Match( return Match(
@@ -87,7 +87,7 @@ if __name__ == "__main__": # Required for multiprocessing
AlignBallGoal(), AlignBallGoal(),
KickoffReward(), KickoffReward(),
), ),
(1.0, 10.0, 50.0, 10.0, 0.1, 1.0, 1.0, 0.2, 10.0, 20.0, 10.0), (50.0, 10.0, 20.0, 10.0, 0.1, 10.0, 1.0, 0.2, 10.0, 20.0, 10.0),
), ),
spawn_opponents=True, spawn_opponents=True,
terminal_conditions=[ terminal_conditions=[