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

Function parse_args

2-cartpole/env.py:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def parse_args():
16 parser = argparse.ArgumentParser()
17 parser.add_argument("--render", action="store_true",
18 help="show the cartpole window during training")
19 parser.add_argument("--test", action="store_true",
20 help="load the saved checkpoint and just play (no learning)")
21 return parser.parse_args()
22
23
24def make_env(args):

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