Skip to content

Commit

Permalink
Fix bug in test rmse computation, causing incorrect values (generally…
Browse files Browse the repository at this point in the history
… inflated)
  • Loading branch information
joeloskarsson committed Nov 7, 2023
1 parent 2d86715 commit 6377d44
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 @@ -338,7 +338,7 @@ def on_test_epoch_end(self):
if self.trainer.is_global_zero:
test_mae_rescaled = torch.mean(test_mae_tensor,
dim=0) * self.data_std # (pred_steps, d_f)
test_rmse_rescaled = torch.sqrt(torch.mean(test_mae_tensor,
test_rmse_rescaled = torch.sqrt(torch.mean(test_mse_tensor,
dim=0)) * self.data_std # (pred_steps, d_f)

mae_fig = vis.plot_error_map(test_mae_rescaled, step_length=self.step_length)
Expand Down

0 comments on commit 6377d44

Please sign in to comment.