Skip to content
Open
2 changes: 1 addition & 1 deletion pytorch_forecasting/metrics/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@

# weight samples
if weight is not None:
losses = losses * weight.unsqueeze(-1)
losses = losses * weight

Check warning on line 226 in pytorch_forecasting/metrics/point.py

View check run for this annotation

Codecov / codecov/patch

pytorch_forecasting/metrics/point.py#L226

Added line #L226 was not covered by tests

self._update_losses_and_lengths(losses, lengths)

Expand Down
Loading