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
04a942e5
Commit
04a942e5
authored
4 years ago
by
Egli Adrian (IT-SCI-API-PFI)
Browse files
Options
Downloads
Patches
Plain Diff
bug fixed
parent
0e7aa90c
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
run.py
+3
-1
3 additions, 1 deletion
run.py
with
3 additions
and
1 deletion
run.py
+
3
−
1
View file @
04a942e5
...
@@ -45,7 +45,7 @@ from reinforcement_learning.dddqn_policy import DDDQNPolicy
...
@@ -45,7 +45,7 @@ from reinforcement_learning.dddqn_policy import DDDQNPolicy
# Print per-step logs
# Print per-step logs
VERBOSE
=
True
VERBOSE
=
True
USE_FAST_TREE
_
OBS
=
True
USE_FAST_TREEOBS
=
True
# Checkpoint to use (remember to push it!)
# Checkpoint to use (remember to push it!)
checkpoint
=
"
./checkpoints/201124171810-7800.pth
"
# 18.249244799876152 DEPTH=2 AGENTS=10
checkpoint
=
"
./checkpoints/201124171810-7800.pth
"
# 18.249244799876152 DEPTH=2 AGENTS=10
...
@@ -74,9 +74,11 @@ if USE_FAST_TREEOBS:
...
@@ -74,9 +74,11 @@ if USE_FAST_TREEOBS:
def
check_is_observation_valid
(
observation
):
def
check_is_observation_valid
(
observation
):
return
True
return
True
def
get_normalized_observation
(
observation
,
tree_depth
:
int
,
observation_radius
=
0
):
def
get_normalized_observation
(
observation
,
tree_depth
:
int
,
observation_radius
=
0
):
return
observation
return
observation
tree_observation
=
FastTreeObs
(
max_depth
=
observation_tree_depth
)
tree_observation
=
FastTreeObs
(
max_depth
=
observation_tree_depth
)
state_size
=
tree_observation
.
observation_dim
state_size
=
tree_observation
.
observation_dim
else
:
else
:
...
...
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