Skip to content
Permalink
Browse files

fix: assertion

  • Loading branch information...
Luolc committed Feb 26, 2019
1 parent 53d8c11 commit 02e11bae10c82f6b5365f7925c8cf71252adcd52
Showing with 1 addition and 1 deletion.
  1. +1 −1 adabound/adabound.py
@@ -32,7 +32,7 @@ def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), final_lr=0.1, gamma=1e-3
raise ValueError("Invalid beta parameter at index 0: {}".format(betas[0]))
if not 0.0 <= betas[1] < 1.0:
raise ValueError("Invalid beta parameter at index 1: {}".format(betas[1]))
if not 0.1 <= final_lr:
if not 0.0 <= final_lr:
raise ValueError("Invalid final learning rate: {}".format(final_lr))
if not 0.0 <= gamma < 1.0:
raise ValueError("Invalid gamma parameter: {}".format(gamma))

0 comments on commit 02e11ba

Please sign in to comment.
You can’t perform that action at this time.