Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
62a6102c
Commit
62a6102c
authored
Sep 24, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore stderr from agent.
parent
7aaa40f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bin/Trainer.py
bin/Trainer.py
+1
-1
example/high_level_random_agent.cpp
example/high_level_random_agent.cpp
+1
-1
example/low_level_random_agent.cpp
example/low_level_random_agent.cpp
+1
-1
No files found.
bin/Trainer.py
View file @
62a6102c
...
@@ -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
)
...
...
example/high_level_random_agent.cpp
View file @
62a6102c
...
@@ -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
...
...
example/low_level_random_agent.cpp
View file @
62a6102c
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment