Commit 62a6102c authored by Matthew Hausknecht's avatar Matthew Hausknecht

ignore stderr from agent.

parent 7aaa40f4
...@@ -123,7 +123,7 @@ class Trainer(object): ...@@ -123,7 +123,7 @@ class Trainer(object):
agentCmd = os.path.join(binary_dir, agentCmd) agentCmd = os.path.join(binary_dir, agentCmd)
agentCmd = agentCmd.split(' ') agentCmd = agentCmd.split(' ')
# Ignore stderr because librcsc continually prints to it # Ignore stderr because librcsc continually prints to it
kwargs = {}#{'stderr':open('/dev/null','w')} kwargs = {'stderr':open('/dev/null','w')}
p = subprocess.Popen(agentCmd, **kwargs) p = subprocess.Popen(agentCmd, **kwargs)
p.wait() p.wait()
pid_file = os.path.join(self._logDir, 'start%i'%p.pid) pid_file = os.path.join(self._logDir, 'start%i'%p.pid)
......
...@@ -23,7 +23,7 @@ int main() { ...@@ -23,7 +23,7 @@ int main() {
// feature set. See manual for more information on feature sets. // feature set. See manual for more information on feature sets.
hfo.connectToAgentServer(6000, HIGH_LEVEL_FEATURE_SET); hfo.connectToAgentServer(6000, HIGH_LEVEL_FEATURE_SET);
// Play 5 episodes // Play 5 episodes
for (int episode=0; episode<5; episode++) { for (int episode=0; ; episode++) {
status_t status = IN_GAME; status_t status = IN_GAME;
while (status == IN_GAME) { while (status == IN_GAME) {
// Get the vector of state features for the current state // Get the vector of state features for the current state
......
...@@ -45,7 +45,7 @@ int main() { ...@@ -45,7 +45,7 @@ int main() {
// feature set. See manual for more information on feature sets. // feature set. See manual for more information on feature sets.
hfo.connectToAgentServer(6000, LOW_LEVEL_FEATURE_SET); hfo.connectToAgentServer(6000, LOW_LEVEL_FEATURE_SET);
// Play 5 episodes // Play 5 episodes
for (int episode=0; episode<5; episode++) { for (int episode=0; ; episode++) {
status_t status = IN_GAME; status_t status = IN_GAME;
while (status == IN_GAME) { while (status == IN_GAME) {
// Get the vector of state features for the current state // Get the vector of state features for the current state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment