update codes

This commit is contained in:
johnjim0816
2021-12-22 16:55:09 +08:00
parent 75df999258
commit 41fb561d25
75 changed files with 1248 additions and 918 deletions

View File

@@ -39,8 +39,8 @@ class SarsaConfig:
def env_agent_config(cfg,seed=1):
env = RacetrackEnv()
action_dim=9
agent = Sarsa(action_dim,cfg)
n_actions=9
agent = Sarsa(n_actions,cfg)
return env,agent
def train(cfg,env,agent):