-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e27370
commit 95e2d76
Showing
23 changed files
with
467 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,6 @@ es: | |
wandb: | ||
group: cournot | ||
name: 'cournot-GS-${agent1}-vs-${agent2}' | ||
log: False | ||
log: True | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,5 +92,6 @@ es: | |
wandb: | ||
group: cournot | ||
name: 'cournot-MFOS-${agent1}-vs-${agent2}' | ||
log: True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,5 +94,6 @@ es: | |
wandb: | ||
group: cournot | ||
name: 'cournot-SHAPER-${agent1}-vs-${agent2}' | ||
log: True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# @package _global_ | ||
|
||
# Agents | ||
agent1: 'PPO' | ||
agent2: 'PPO_memory' | ||
|
||
# Environment | ||
env_id: Fishery | ||
env_type: meta | ||
g: 0.15 | ||
e: 0.009 | ||
P: 200 | ||
w: 0.9 | ||
s_0: 0.5 | ||
s_max: 1.0 | ||
|
||
|
||
# Runner | ||
runner: eval | ||
|
||
# TODO | ||
run_path: chrismatix/thesis/dhzxkw57 | ||
model_path: exp/fishery/fishery-GS-PPO-vs-PPO_memory/2023-08-01_20.27.07.402547/generation_900 | ||
|
||
|
||
# Training | ||
top_k: 5 | ||
popsize: 1000 | ||
num_envs: 1 | ||
num_opps: 1 | ||
num_outer_steps: 1 | ||
num_steps: 600 # Run num_steps // num_inner_steps trials | ||
num_inner_steps: 300 | ||
num_iters: 2 | ||
num_devices: 1 | ||
|
||
# PPO agent parameters | ||
ppo1: | ||
num_minibatches: 4 | ||
num_epochs: 2 | ||
gamma: 0.96 | ||
gae_lambda: 0.95 | ||
ppo_clipping_epsilon: 0.2 | ||
value_coeff: 0.5 | ||
clip_value: True | ||
max_gradient_norm: 0.5 | ||
anneal_entropy: False | ||
entropy_coeff_start: 0.02 | ||
entropy_coeff_horizon: 2000000 | ||
entropy_coeff_end: 0.001 | ||
lr_scheduling: False | ||
learning_rate: 1 | ||
adam_epsilon: 1e-5 | ||
with_memory: False | ||
with_cnn: False | ||
hidden_size: 16 | ||
|
||
# PPO agent parameters | ||
ppo2: | ||
num_minibatches: 4 | ||
num_epochs: 2 | ||
gamma: 0.96 | ||
gae_lambda: 0.95 | ||
ppo_clipping_epsilon: 0.2 | ||
value_coeff: 0.5 | ||
clip_value: True | ||
max_gradient_norm: 0.5 | ||
anneal_entropy: False | ||
entropy_coeff_start: 0.02 | ||
entropy_coeff_horizon: 2000000 | ||
entropy_coeff_end: 0.001 | ||
lr_scheduling: False | ||
learning_rate: 1 | ||
adam_epsilon: 1e-5 | ||
with_memory: False | ||
with_cnn: False | ||
hidden_size: 16 | ||
|
||
|
||
# ES parameters | ||
es: | ||
algo: OpenES # [OpenES, CMA_ES] | ||
sigma_init: 0.04 # Initial scale of isotropic Gaussian noise | ||
sigma_decay: 0.999 # Multiplicative decay factor | ||
sigma_limit: 0.01 # Smallest possible scale | ||
init_min: 0.0 # Range of parameter mean initialization - Min | ||
init_max: 0.0 # Range of parameter mean initialization - Max | ||
clip_min: -1e10 # Range of parameter proposals - Min | ||
clip_max: 1e10 # Range of parameter proposals - Max | ||
lrate_init: 0.01 # Initial learning rate | ||
lrate_decay: 0.9999 # Multiplicative decay factor | ||
lrate_limit: 0.001 # Smallest possible lrate | ||
beta_1: 0.99 # Adam - beta_1 | ||
beta_2: 0.999 # Adam - beta_2 | ||
eps: 1e-8 # eps constant, | ||
centered_rank: False # Fitness centered_rank | ||
w_decay: 0 # Decay old elite fitness | ||
maximise: True # Maximise fitness | ||
z_score: False # Normalise fitness | ||
mean_reduce: True # Remove mean | ||
|
||
# Logging setup | ||
wandb: | ||
group: fishery | ||
name: 'EVAL_fishery-GS-${agent1}-vs-${agent2}' | ||
log: True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# @package _global_ | ||
|
||
# Agents | ||
agent1: 'PPO_memoruy' | ||
agent2: 'PPO' | ||
|
||
# Environment | ||
env_id: Fishery | ||
env_type: sequential | ||
g: 0.15 | ||
e: 0.009 | ||
P: 200 | ||
w: 0.9 | ||
s_0: 0.5 | ||
s_max: 1.0 | ||
|
||
# Runner | ||
runner: eval | ||
|
||
# TODO | ||
run_path: chrismatix/thesis/dhzxkw57 | ||
model_path: exp/fishery/fishery-GS-PPO-vs-PPO_memory/2023-08-01_20.27.07.402547/generation_900 | ||
|
||
# env_batch_size = num_envs * num_opponents | ||
num_envs: 100 | ||
num_opps: 1 | ||
num_outer_steps: 1 | ||
num_inner_steps: 300 # number of inner steps (only for MetaFinite Env) | ||
num_iters: 1e6 | ||
|
||
# Useful information | ||
# batch_size = num_envs * num_steps | ||
|
||
# PPO agent parameters | ||
ppo1: | ||
num_minibatches: 10 | ||
num_epochs: 4 | ||
gamma: 0.96 | ||
gae_lambda: 0.95 | ||
ppo_clipping_epsilon: 0.2 | ||
value_coeff: 0.5 | ||
clip_value: True | ||
max_gradient_norm: 0.5 | ||
anneal_entropy: True | ||
entropy_coeff_start: 0.1 | ||
entropy_coeff_horizon: 0.25e9 | ||
entropy_coeff_end: 0.05 | ||
lr_scheduling: True | ||
learning_rate: 3e-4 | ||
adam_epsilon: 1e-5 | ||
with_memory: True | ||
hidden_size: 16 | ||
with_cnn: False | ||
|
||
ppo2: | ||
num_minibatches: 10 | ||
num_epochs: 4 | ||
gamma: 0.96 | ||
gae_lambda: 0.95 | ||
ppo_clipping_epsilon: 0.2 | ||
value_coeff: 0.5 | ||
clip_value: True | ||
max_gradient_norm: 0.5 | ||
anneal_entropy: True | ||
entropy_coeff_start: 0.1 | ||
entropy_coeff_horizon: 0.25e9 | ||
entropy_coeff_end: 0.05 | ||
lr_scheduling: True | ||
learning_rate: 3e-4 | ||
adam_epsilon: 1e-5 | ||
with_memory: True | ||
hidden_size: 16 | ||
with_cnn: False | ||
|
||
# Logging setup | ||
wandb: | ||
group: fishery | ||
name: 'fishery-MARL^2-${agent1}-vs-${agent2}-parity' | ||
log: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pax/conf/experiment/fishery/ppo_v_ppo.yaml → ...onf/experiment/fishery/marl_baseline.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# @package _global_ | ||
|
||
# Agents | ||
agent1: 'PPO' | ||
agent1: 'PPO_memoruy' | ||
agent2: 'PPO' | ||
|
||
# Environment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.