Skip to content

Commit

Permalink
fix: mismatched arguments when calling calc_quantile_loss;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Feb 19, 2025
1 parent f5d4e24 commit 5f18d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypots/utils/metrics/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,6 @@ def calc_quantile_crps_sum(
CRPS = torch.tensor(0.0)
for i in range(len(quantiles)):
q_pred = torch.quantile(predictions.sum(-1), quantiles[i], dim=1)
q_loss = calc_quantile_loss(targets, q_pred, quantiles[i], masks)
q_loss = calc_quantile_loss(q_pred, targets, quantiles[i], masks)
CRPS += q_loss / denominator
return CRPS.item() / len(quantiles)

0 comments on commit 5f18d30

Please sign in to comment.