Skip to content

Commit

Permalink
Merge branch 'develop' into feat/integ-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sash-a committed Apr 3, 2024
2 parents 54a1ff8 + d5be36a commit fab9231
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mava/configs/env/cleaner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ eval_metric: episode_return
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: True
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: True

kwargs:
{} # time limit set in scenario
3 changes: 3 additions & 0 deletions mava/configs/env/connector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ eval_metric: episode_return
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: True
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: False

kwargs:
time_limit: 100
3 changes: 3 additions & 0 deletions mava/configs/env/gigastep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ eval_metric: win_rate
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: False
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: True

# Currently we only support discrete actions and vector observations.
kwargs:
Expand Down
3 changes: 3 additions & 0 deletions mava/configs/env/lbf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ eval_metric: episode_return
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: False
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: False

kwargs:
time_limit: 100
3 changes: 3 additions & 0 deletions mava/configs/env/mabrax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ eval_metric: episode_return
# Note: When using homogenisation_method = "max", a one-hot vector representing the agent ID is added.
# If the homogenisation method is changed, set this to False.
implicit_agent_id: True
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: False

kwargs:
episode_length: 1000
Expand Down
3 changes: 3 additions & 0 deletions mava/configs/env/matrax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ eval_metric: episode_return
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: False
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: False

kwargs:
time_limit: 25
3 changes: 3 additions & 0 deletions mava/configs/env/rware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ eval_metric: episode_return
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: False
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: False

kwargs:
time_limit: 500
3 changes: 3 additions & 0 deletions mava/configs/env/smax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ eval_metric: win_rate
# Whether the environment observations encode implicit agent IDs. If True, the AgentID wrapper is not used.
# This should not be changed.
implicit_agent_id: False
# Whether or not to log the winrate of this environment. This should not be changed as not all
# environments have a winrate metric.
log_win_rate: True

kwargs:
see_enemy_actions: True # Whether to enable enemy vision. If True, the enemy will be able to see the actions of the agent.
Expand Down
2 changes: 1 addition & 1 deletion mava/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def make_eval_fns(
AssertionError: If `use_recurrent_net` is True but `scanned_rnn` is not provided.
"""
# Check if win rate is required for evaluation.
log_win_rate = config.env.eval_metric == "win_rate"
log_win_rate = config.env.log_win_rate
# Vmap it over number of agents and create evaluator_fn.
if use_recurrent_net:
assert scanned_rnn is not None
Expand Down

0 comments on commit fab9231

Please sign in to comment.