update codes

This commit is contained in:
johnjim0816
2021-12-28 18:46:52 +08:00
parent 41fb561d25
commit bd51b5a7ad
52 changed files with 305 additions and 292 deletions

View File

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