Skip to content

Commit 1488978

Browse files
Update autoPyTorch/pipeline/components/setup/network_backbone/utils.py
Providing information on the wrong method provided for shake-shake regularization. Co-authored-by: nabenabe0928 <47781922+nabenabe0928@users.noreply.github.com>
1 parent 9f8ebb5 commit 1488978

File tree

1 file changed

+1
-1
lines changed
  • autoPyTorch/pipeline/components/setup/network_backbone

1 file changed

+1
-1
lines changed

autoPyTorch/pipeline/components/setup/network_backbone/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def shake_get_alpha_beta(
140140
[rnd * (0.5 - alpha) + alpha if alpha < 0.5 else rnd * (alpha - 0.5) + 0.5]
141141
)
142142
else:
143-
raise ValueError("Unknown method for ShakeShakeRegularisation in NetworkBackbone")
143+
raise ValueError(f"Unknown method `{method}` for ShakeShakeRegularisation in NetworkBackbone")
144144

145145
if is_cuda:
146146
alpha = alpha.cuda()

0 commit comments

Comments
 (0)