Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Allow for config of expand_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Oct 28, 2024
1 parent 745b812 commit 6e38c9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/anemoi/training/config/diagnostics/eval_rollout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ log:
terminal: True
run_name: null # If set to null, the run name will be the a random UUID
on_resume_create_child: True
expand_hyperparams: # Which keys in hyperparams to expand
- config
interval: 100

enable_progress_bar: True
Expand Down
5 changes: 4 additions & 1 deletion src/anemoi/training/diagnostics/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def get_mlflow_logger(config: DictConfig) -> None:
)
config_params = OmegaConf.to_container(config, resolve=True)

logger.log_hyperparams(config_params, expand_keys=["config"])
logger.log_hyperparams(
config_params,
expand_keys=config.diagnostics.log.mlflow.get("expand_hyperparams", ["config"]),
)

if config.diagnostics.log.mlflow.terminal:
logger.log_terminal_output(artifact_save_dir=config.hardware.paths.plots)
Expand Down

0 comments on commit 6e38c9e

Please sign in to comment.