Skip to content

Commit

Permalink
choose project name
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Sep 6, 2024
1 parent ac2bc9f commit 987f57d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions benchmarl/conf/experiment/base_experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ evaluation_deterministic_actions: True

# List of loggers to use, options are: wandb, csv, tensorboard, mflow
loggers: []
# Wandb project name
project_name: "benchmarl"
# Create a json folder as part of the output in the format of marl-eval
create_json: True

Expand Down
2 changes: 2 additions & 0 deletions benchmarl/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class ExperimentConfig:
evaluation_deterministic_actions: bool = MISSING

loggers: List[str] = MISSING
project_name: str = MISSING
create_json: bool = MISSING

save_folder: Optional[str] = MISSING
Expand Down Expand Up @@ -535,6 +536,7 @@ def _setup_name(self):

def _setup_logger(self):
self.logger = Logger(
project_name=self.config.project_name,
experiment_name=self.name,
folder_name=str(self.folder_name),
experiment_config=self.config,
Expand Down
3 changes: 2 additions & 1 deletion benchmarl/experiment/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(
model_name: str,
group_map: Dict[str, List[str]],
seed: int,
project_name: str,
):
self.experiment_config = experiment_config
self.algorithm_name = algorithm_name
Expand Down Expand Up @@ -63,7 +64,7 @@ def __init__(
experiment_name=experiment_name,
wandb_kwargs={
"group": task_name,
"project": "benchmarl",
"project": project_name,
"id": experiment_name,
},
)
Expand Down

0 comments on commit 987f57d

Please sign in to comment.