Skip to content

Commit 8cd4444

Browse files
authored
fix(scalarization): Correct GeometricMean error message (#799)
1 parent 9ba45e3 commit 8cd4444

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/torchjd/scalarization/_geometric_mean.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GeometricMean(Scalarizer):
1717
def forward(self, values: Tensor, /) -> Tensor:
1818
if (values < 0.0).any():
1919
raise ValueError(
20-
"GeometricMean is only defined for strictly positive values."
20+
"GeometricMean is only defined for non-negative values. "
2121
"Found a negative value in the input."
2222
)
2323
return torch.exp(torch.log(values).mean())

0 commit comments

Comments
 (0)