Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neurips2020-flatland-starter-kit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
adrian_egli
neurips2020-flatland-starter-kit
Commits
2393654f
There was an error fetching the commit references. Please try again later.
Commit
2393654f
authored
4 years ago
by
Egli Adrian (IT-SCI-API-PFI)
Browse files
Options
Downloads
Patches
Plain Diff
bug fixed
parent
d3479be5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/dead_lock_avoidance_agent.py
+1
-1
1 addition, 1 deletion
utils/dead_lock_avoidance_agent.py
utils/fast_tree_obs.py
+1
-1
1 addition, 1 deletion
utils/fast_tree_obs.py
with
2 additions
and
2 deletions
utils/dead_lock_avoidance_agent.py
+
1
−
1
View file @
2393654f
...
@@ -67,7 +67,7 @@ class DeadlockAvoidanceShortestDistanceWalker(ShortestDistanceWalker):
...
@@ -67,7 +67,7 @@ class DeadlockAvoidanceShortestDistanceWalker(ShortestDistanceWalker):
class
DeadLockAvoidanceAgent
(
Policy
):
class
DeadLockAvoidanceAgent
(
Policy
):
def
_init__
(
self
,
env
:
RailEnv
,
action_size
,
show_debug_plot
=
False
):
def
_
_init__
(
self
,
env
:
RailEnv
,
action_size
,
show_debug_plot
=
False
):
self
.
env
=
env
self
.
env
=
env
self
.
memory
=
None
self
.
memory
=
None
self
.
loss
=
0
self
.
loss
=
0
...
...
This diff is collapsed.
Click to expand it.
utils/fast_tree_obs.py
+
1
−
1
View file @
2393654f
...
@@ -36,7 +36,7 @@ class FastTreeObs(ObservationBuilder):
...
@@ -36,7 +36,7 @@ class FastTreeObs(ObservationBuilder):
self
.
debug_render_path_list
=
[]
self
.
debug_render_path_list
=
[]
if
self
.
env
is
not
None
:
if
self
.
env
is
not
None
:
self
.
find_all_cell_where_agent_can_choose
()
self
.
find_all_cell_where_agent_can_choose
()
self
.
dead_lock_avoidance_agent
=
DeadLockAvoidanceAgent
(
self
.
env
,
5
)
self
.
dead_lock_avoidance_agent
=
DeadLockAvoidanceAgent
(
self
.
env
,
5
,
False
)
else
:
else
:
self
.
dead_lock_avoidance_agent
=
None
self
.
dead_lock_avoidance_agent
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment