Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
24
def
make_env(args):
25
return
gym.make(
"CartPole-v1"
,
26
render_mode=
"human"
if
(args.render or args.test)
else
None)
27
28
29
def
quit_if_window_closed(env):
Callers
3
2-a2c.py
File · 0.90
3-ppo.py
File · 0.90
1-dqn.py
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected