Skip to content

Commit 68a3e85

Browse files
committed
Misc changes
1 parent e48cce7 commit 68a3e85

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

PolicyGradient/a3c/train.py

100644100755
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#! /usr/bin/env python
2+
13
import unittest
24
import gym
35
import sys
@@ -21,12 +23,12 @@
2123
from policy_monitor import PolicyMonitor
2224
from worker import Worker
2325

24-
tf.flags.DEFINE_string("model_dir", "/tmp/a3c", "Directory to write to")
25-
tf.flags.DEFINE_string("env", "Breakout-v0", "Name of gym Atari environment")
26+
tf.flags.DEFINE_string("model_dir", "/tmp/a3c", "Directory to write Tensorboard summaries and videos to.")
27+
tf.flags.DEFINE_string("env", "Breakout-v0", "Name of gym Atari environment, e.g. Breakout-v0")
2628
tf.flags.DEFINE_integer("t_max", 5, "Number of steps before performing an update")
27-
tf.flags.DEFINE_integer("max_global_steps", None, "Stop after this many steps in the environment")
29+
tf.flags.DEFINE_integer("max_global_steps", None, "Stop training after this many steps in the environment. Defaults to running indefinitely.")
2830
tf.flags.DEFINE_integer("eval_every", 300, "Evaluate the policy every N seconds")
29-
tf.flags.DEFINE_boolean("reset", False, "If true, delete the existing model directory")
31+
tf.flags.DEFINE_boolean("reset", False, "If set, delete the existing model directory and start training from scratch.")
3032
tf.flags.DEFINE_integer("parallelism", None, "Number of threads to run. If not set we run [num_cpu_cores] threads.")
3133

3234
FLAGS = tf.flags.FLAGS

0 commit comments

Comments
 (0)