MCPcopy Index your code
hub / github.com/rlcode/reinforcement-learning / make_env

Function make_env

2-cartpole/env.py:24–26  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

22
23
24def make_env(args):
25 return gym.make("CartPole-v1",
26 render_mode="human" if (args.render or args.test) else None)
27
28
29def quit_if_window_closed(env):

Callers 3

2-a2c.pyFile · 0.90
3-ppo.pyFile · 0.90
1-dqn.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected