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

fix: enable learningrate monitor automatically #119

Merged
merged 5 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Keep it human-readable, your future self will thank you!
### Fixed
- Refactored callbacks. [#60](https://github.com/ecmwf/anemoi-training/pulls/60)
- Updated docs [#115](https://github.com/ecmwf/anemoi-training/pull/115)
- Fix enabling LearningRateMonitor [#119](https://github.com/ecmwf/anemoi-training/pull/119)
- Refactored rollout [#87](https://github.com/ecmwf/anemoi-training/pulls/87)
- Enable longer validation rollout than training
### Added
Expand Down
5 changes: 2 additions & 3 deletions src/anemoi/training/diagnostics/callbacks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@


def nestedget(conf: DictConfig, key, default):
"""
Get a nested key from a DictConfig object
"""Get a nested key from a DictConfig object

E.g.
>>> nestedget(config, "diagnostics.log.wandb.enabled", False)
Expand All @@ -50,7 +49,7 @@ def nestedget(conf: DictConfig, key, default):
("training.swa.enabled", StochasticWeightAveraging),
(
lambda config: nestedget(config, "diagnostics.log.wandb.enabled", False)
or nestedget(config, "diagnostics.log.mflow.enabled", False),
or nestedget(config, "diagnostics.log.mlflow.enabled", False),
LearningRateMonitor,
),
]
Expand Down
Loading