Skip to content

Commit

Permalink
fix label shape for lss regression
Browse files Browse the repository at this point in the history
  • Loading branch information
AnFreTh committed Jul 25, 2024
1 parent 3f482fa commit b246d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mambular/base_models/lightning_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def compute_loss(self, predictions, y_true):
Computed loss.
"""
if self.lss:
return self.family.compute_loss(predictions, y_true)
return self.family.compute_loss(predictions, y_true.squeeze(-1))
else:
loss = self.loss_fct(predictions, y_true)
return loss
Expand Down

0 comments on commit b246d5c

Please sign in to comment.