Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marl-flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
manavsinghal157
marl-flatland
Commits
99bd7eba
Commit
99bd7eba
authored
4 years ago
by
Egli Adrian (IT-SCI-API-PFI)
Browse files
Options
Downloads
Patches
Plain Diff
DQN & PPO
parent
876f8c74
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
checkpoints/201106073658-4400.pth.optimizer
+0
-0
0 additions, 0 deletions
checkpoints/201106073658-4400.pth.optimizer
checkpoints/201106073658-4400.pth.policy
+0
-0
0 additions, 0 deletions
checkpoints/201106073658-4400.pth.policy
run.py
+4
-4
4 additions, 4 deletions
run.py
with
4 additions
and
4 deletions
checkpoints/201106073658-4400.pth.optimizer
0 → 100644
+
0
−
0
View file @
99bd7eba
File added
This diff is collapsed.
Click to expand it.
checkpoints/201106073658-4400.pth.policy
0 → 100644
+
0
−
0
View file @
99bd7eba
File added
This diff is collapsed.
Click to expand it.
run.py
+
4
−
4
View file @
99bd7eba
...
...
@@ -27,8 +27,8 @@ VERBOSE = True
# Checkpoint to use (remember to push it!)
checkpoint
=
"
./checkpoints/201105222046-5400.pth
"
# 17.66104361971127 Depth 1
checkpoint
=
"
./checkpoints/201106073658-4
3
00.pth
"
# 15.64082361736683 Depth 1
checkpoint
=
"
./checkpoints/201106090621-3300.pth
"
# 15.64082361736683 Depth 1
checkpoint
=
"
./checkpoints/201106073658-4
4
00.pth
"
# 15.64082361736683 Depth 1
#
checkpoint = "./checkpoints/201106090621-3300.pth" # 15.64082361736683 Depth 1
# Use last action cache
USE_ACTION_CACHE
=
False
...
...
@@ -52,8 +52,8 @@ state_size = tree_observation.observation_dim
action_size
=
5
# Creates the policy. No GPU on evaluation server.
policy
=
DDDQNPolicy
(
state_size
,
action_size
,
Namespace
(
**
{
'
use_gpu
'
:
False
}),
evaluation_mode
=
True
)
#
policy = PPOAgent(state_size, action_size, 10)
#
policy = DDDQNPolicy(state_size, action_size, Namespace(**{'use_gpu': False}), evaluation_mode=True)
policy
=
PPOAgent
(
state_size
,
action_size
,
10
)
policy
.
load
(
checkpoint
)
#####################################################################
...
...
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