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
d387c2e6
Commit
d387c2e6
authored
4 years ago
by
adrian_egli2
Browse files
Options
Downloads
Patches
Plain Diff
doc
parent
3c721de5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+20
-1
20 additions, 1 deletion
README.md
with
20 additions
and
1 deletion
README.md
+
20
−
1
View file @
d387c2e6
🚂 This code is based on the official starter kit - NeurIPS 2020 Flatland Challenge
---
You can use for your own experiments
You can use for your own experiments full or reduced action space.
```
python
def
map_action
(
action
):
# if full action space is used -> no mapping required
if
get_action_size
()
==
get_flatland_full_action_size
():
return
action
# if reduced action space is used -> the action has to be mapped to real flatland actions
# The reduced action space removes the DO_NOTHING action from Flatland.
if
action
==
0
:
return
RailEnvActions
.
MOVE_LEFT
if
action
==
1
:
return
RailEnvActions
.
MOVE_FORWARD
if
action
==
2
:
return
RailEnvActions
.
MOVE_RIGHT
if
action
==
3
:
return
RailEnvActions
.
STOP_MOVING
```
```
python
set_action_size_full
()
```
...
...
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