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
320dabf7
Commit
320dabf7
authored
4 years ago
by
Egli Adrian (IT-SCI-API-PFI)
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
c20d4638
No related branches found
Branches containing commit
Tags
submission-v7.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reinforcement_learning/multi_agent_training.py
+3
-3
3 additions, 3 deletions
reinforcement_learning/multi_agent_training.py
run.py
+1
-1
1 addition, 1 deletion
run.py
with
4 additions
and
4 deletions
reinforcement_learning/multi_agent_training.py
+
3
−
3
View file @
320dabf7
...
@@ -474,7 +474,7 @@ def eval_policy(env, tree_observation, policy, train_params, obs_params):
...
@@ -474,7 +474,7 @@ def eval_policy(env, tree_observation, policy, train_params, obs_params):
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
parser
=
ArgumentParser
()
parser
=
ArgumentParser
()
parser
.
add_argument
(
"
-n
"
,
"
--n_episodes
"
,
help
=
"
number of episodes to run
"
,
default
=
2500
,
type
=
int
)
parser
.
add_argument
(
"
-n
"
,
"
--n_episodes
"
,
help
=
"
number of episodes to run
"
,
default
=
1
2500
,
type
=
int
)
parser
.
add_argument
(
"
-t
"
,
"
--training_env_config
"
,
help
=
"
training config id (eg 0 for Test_0)
"
,
default
=
2
,
type
=
int
)
parser
.
add_argument
(
"
-t
"
,
"
--training_env_config
"
,
help
=
"
training config id (eg 0 for Test_0)
"
,
default
=
2
,
type
=
int
)
parser
.
add_argument
(
"
-e
"
,
"
--evaluation_env_config
"
,
help
=
"
evaluation config id (eg 0 for Test_0)
"
,
default
=
0
,
parser
.
add_argument
(
"
-e
"
,
"
--evaluation_env_config
"
,
help
=
"
evaluation config id (eg 0 for Test_0)
"
,
default
=
0
,
type
=
int
)
type
=
int
)
...
@@ -482,8 +482,8 @@ if __name__ == "__main__":
...
@@ -482,8 +482,8 @@ if __name__ == "__main__":
parser
.
add_argument
(
"
--checkpoint_interval
"
,
help
=
"
checkpoint interval
"
,
default
=
100
,
type
=
int
)
parser
.
add_argument
(
"
--checkpoint_interval
"
,
help
=
"
checkpoint interval
"
,
default
=
100
,
type
=
int
)
parser
.
add_argument
(
"
--eps_start
"
,
help
=
"
max exploration
"
,
default
=
1.0
,
type
=
float
)
parser
.
add_argument
(
"
--eps_start
"
,
help
=
"
max exploration
"
,
default
=
1.0
,
type
=
float
)
parser
.
add_argument
(
"
--eps_end
"
,
help
=
"
min exploration
"
,
default
=
0.01
,
type
=
float
)
parser
.
add_argument
(
"
--eps_end
"
,
help
=
"
min exploration
"
,
default
=
0.01
,
type
=
float
)
parser
.
add_argument
(
"
--eps_decay
"
,
help
=
"
exploration decay
"
,
default
=
0.99
,
type
=
float
)
parser
.
add_argument
(
"
--eps_decay
"
,
help
=
"
exploration decay
"
,
default
=
0.99
8
,
type
=
float
)
parser
.
add_argument
(
"
--buffer_size
"
,
help
=
"
replay buffer size
"
,
default
=
int
(
1e
5
),
type
=
int
)
parser
.
add_argument
(
"
--buffer_size
"
,
help
=
"
replay buffer size
"
,
default
=
int
(
1e
7
),
type
=
int
)
parser
.
add_argument
(
"
--buffer_min_size
"
,
help
=
"
min buffer size to start training
"
,
default
=
0
,
type
=
int
)
parser
.
add_argument
(
"
--buffer_min_size
"
,
help
=
"
min buffer size to start training
"
,
default
=
0
,
type
=
int
)
parser
.
add_argument
(
"
--restore_replay_buffer
"
,
help
=
"
replay buffer to restore
"
,
default
=
""
,
type
=
str
)
parser
.
add_argument
(
"
--restore_replay_buffer
"
,
help
=
"
replay buffer to restore
"
,
default
=
""
,
type
=
str
)
parser
.
add_argument
(
"
--save_replay_buffer
"
,
help
=
"
save replay buffer at each evaluation interval
"
,
default
=
False
,
parser
.
add_argument
(
"
--save_replay_buffer
"
,
help
=
"
save replay buffer at each evaluation interval
"
,
default
=
False
,
...
...
This diff is collapsed.
Click to expand it.
run.py
+
1
−
1
View file @
320dabf7
...
@@ -25,7 +25,7 @@ from reinforcement_learning.dddqn_policy import DDDQNPolicy
...
@@ -25,7 +25,7 @@ from reinforcement_learning.dddqn_policy import DDDQNPolicy
VERBOSE
=
True
VERBOSE
=
True
# Checkpoint to use (remember to push it!)
# Checkpoint to use (remember to push it!)
checkpoint
=
"
./checkpoints/201103
180606-14
00.pth
"
checkpoint
=
"
./checkpoints/201103
221432-30
00.pth
"
# Use last action cache
# Use last action cache
USE_ACTION_CACHE
=
True
USE_ACTION_CACHE
=
True
...
...
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