fix formatting

This commit is contained in:
Filip Stefaniuk
2024-09-06 11:16:55 +02:00
parent 93fa4009dc
commit f36b7a8e30
3 changed files with 15880 additions and 15 deletions
+3 -1
View File
@@ -12,4 +12,6 @@ class GMADL(MultiHorizonMetric):
self.b = b
def loss(self, y_pred, target):
return -1 * (1 / (1 + torch.exp(-self.a * self.to_prediction(y_pred) * target)) - 0.5) * torch.pow(torch.abs(target), self.b)
return -1 * \
(1 / (1 + torch.exp(-self.a * self.to_prediction(y_pred) * target)
) - 0.5) * torch.pow(torch.abs(target), self.b)