We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0adfc3 commit 58caa34Copy full SHA for 58caa34
monai/losses/adversarial_loss.py
@@ -57,7 +57,7 @@ def __init__(
57
58
if criterion.lower() not in list(AdversarialCriterions):
59
raise ValueError(
60
- "Unrecognised criterion entered for Adversarial Loss. Must be one in: {}".format(", ".join(AdversarialCriterions))
+ f"Unrecognised criterion entered for Adversarial Loss. Must be one in: {', '.join(AdversarialCriterions)}"
61
)
62
63
# Depending on the criterion, a different activation layer is used.
0 commit comments