Skip to content

Commit

Permalink
Fix metric log name, added fuser config option
Browse files Browse the repository at this point in the history
  • Loading branch information
havardhhaugen committed Dec 6, 2024
1 parent df83aaf commit 752093d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/anemoi/training/config/model/fuser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
activation: GELU
num_channels: 1024
use_obs_fuser: True

model:
_target_: anemoi.models.models.obsfuser.AnemoiObsFuser
Expand Down
2 changes: 1 addition & 1 deletion src/anemoi/training/train/netatmo_forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def training_step(self, batch: list, batch_idx: int) -> torch.Tensor:
)
for dset, loss in enumerate(train_loss):
self.log(
f"train_{getattr(self.loss.losses[dset], 'name', self.loss.losses[dset].__class__.__name__.lower())}_{dset}",
f"train_{getattr(self.loss.losses[dset], 'name', self.loss.losses[dset].__class__.__name__.lower())}_dset{dset}",
loss,
on_epoch=True,
on_step=True,
Expand Down

0 comments on commit 752093d

Please sign in to comment.