Merge pull request #1 from djole/main

Fix env_name typo and show function in brax env.
This commit is contained in:
WLS2002
2024-04-28 19:08:58 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ if __name__ == '__main__':
),
),
problem=BraxEnv(
env_name='halhcheetah',
env_name='halfcheetah',
),
generation_limit=10000,
fitness_target=5000

View File

@@ -39,7 +39,7 @@ class BraxEnv(RLEnv):
def step(key, env_state, obs):
key, _ = jax.random.split(key)
action = act_func(state, obs, params)
action = act_func(obs, params)
obs, env_state, r, done, _ = self.step(randkey, env_state, action)
return key, env_state, obs, r, done