Skip to content

Commit

Permalink
Update neural_lam/models/ar_model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Oskarsson <[email protected]>
  • Loading branch information
leifdenby and joeloskarsson authored Sep 27, 2024
1 parent aee0b1c commit 8453c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def validation_step(self, batch, batch_idx):
val_log_dict = {
f"val_loss_unroll{step}": time_step_loss[step - 1]
for step in self.args.val_steps_to_log
if step < len(time_step_loss)
if step <= len(time_step_loss)
}
val_log_dict["val_mean_loss"] = mean_loss
self.log_dict(
Expand Down

0 comments on commit 8453c2b

Please sign in to comment.