Skip to content

Commit fd44cfe

Browse files
committed
fix bug in adamax solution
1 parent 8d2e243 commit fd44cfe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

questions/x_adamax-optimizer/solution.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def adamax_optimizer(parameter, grad, m, u, t, learning_rate=0.002, beta1=0.9, b
2424
assert 0 <= beta1 < 1, "Beta1 must be between 0 and 1"
2525
assert 0 <= beta2 < 1, "Beta2 must be between 0 and 1"
2626
assert epsilon > 0, "Epsilon must be positive"
27-
assert all(m >= 0) if isinstance(m, np.ndarray) else m >= 0, "m must be non-negative"
2827
assert all(u >= 0) if isinstance(u, np.ndarray) else u >= 0, "u must be non-negative"
2928

3029
# Update biased first moment estimate

0 commit comments

Comments
 (0)