Skip to content

Commit 4d4dc82

Browse files
committed
PR comment
1 parent 4b1e014 commit 4d4dc82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pvnet/models/base_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _calculate_val_losses(self, y, y_hat):
390390
# Take median value for remaining metric calculations
391391
y_hat = self._quantiles_to_prediction(y_hat)
392392
# common_metrics_each_step = common_metrics(predictions=y_hat.numpy(), target=y.numpy())
393-
mse_each_step = torch.sqrt(torch.mean((y_hat - y) ** 2, dim=0)) ** 2
393+
mse_each_step = torch.mean((y_hat - y) ** 2, dim=0)
394394
mae_each_step = torch.mean(torch.abs(y_hat - y), dim=0)
395395

396396
losses.update({f"MSE_horizon/step_{i:03}": m for i, m in enumerate(mse_each_step)})

0 commit comments

Comments
 (0)