chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import gymnasium as gym
|
||||
|
||||
|
||||
def create_cartpole_deterministic(config):
|
||||
env = gym.make("CartPole-v1")
|
||||
env.reset(seed=config.get("seed", 0))
|
||||
return env
|
||||
|
||||
|
||||
def create_pendulum_deterministic(config):
|
||||
env = gym.make("Pendulum-v1")
|
||||
env.reset(seed=config.get("seed", 0))
|
||||
return env
|
||||
Reference in New Issue
Block a user