Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
neurips2020-flatland-baselines
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flatland
neurips2020-flatland-baselines
Commits
1320868c
Commit
1320868c
authored
May 02, 2020
by
nilabha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Agent conflict observation documentation
parent
14926487
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
183 additions
and
3 deletions
+183
-3
envs/flatland/observations/local_conflict_obs.py
envs/flatland/observations/local_conflict_obs.py
+7
-1
experiments/flatland_random_sparse_small/local_conflict_obs_fc_net/README.md
...d_random_sparse_small/local_conflict_obs_fc_net/README.md
+176
-2
No files found.
envs/flatland/observations/local_conflict_obs.py
View file @
1320868c
...
...
@@ -256,7 +256,8 @@ def create_agent_states(obs: Union[Dict, List],
max_depth
:
int
,
n_local
:
int
=
5
)
->
Dict
:
"""
Identifies local agent conflicts and adds information from
conflict prediction matrix.
conflict prediction matrix. For more details refer to the
observation section in the README.md file.
"""
n_agents
=
len
(
obs
)
x_dim
=
0
...
...
@@ -382,6 +383,11 @@ def create_agent_states(obs: Union[Dict, List],
def
get_agent_conflict_prediction_matrix
(
n_agents
,
max_depth
,
predicted_pos
)
->
Tuple
[
List
,
List
,
List
]:
'''
Calculates the agent conflict step path and agent conflict count path
and the agent total conflict steps
For more details refer to the observation section in the README.md file.
'''
agent_total_step_conflicts
=
[]
agent_conflicts_step_path
=
[]
agent_conflicts_count_path
=
[]
...
...
experiments/flatland_random_sparse_small/local_conflict_obs_fc_net/README.md
View file @
1320868c
This diff is collapsed.
Click to expand it.
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