diff options
author | Patrick Simianer <p@simianer.de> | 2016-01-28 10:36:23 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-01-28 10:36:23 +0100 |
commit | 4f76c4d6cf2e3d1bec03a636fd5af8b364b1c0f5 (patch) | |
tree | 2e24765c59478edd39c4faa7e6957a88f1e0ccb0 /util | |
parent | d85ce7be7dd2d59603d6ec6b3f8b1bf2f208d2b2 (diff) |
fix rate
Diffstat (limited to 'util')
-rwxr-xr-x | util/convlr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/convlr.rb b/util/convlr.rb index 864f397..c845847 100755 --- a/util/convlr.rb +++ b/util/convlr.rb @@ -19,7 +19,7 @@ ks = updates.keys + grads.keys rates = SparseVector.new ks.each { |k| - rates[k] = -1*(Math.sqrt(updates[k]+smooth)/Math.sqrt(grads[k]+smooth)) + rates[k] = Math.sqrt(updates[k]+smooth)/Math.sqrt(grads[k]+smooth) } rates.each { |k,v| |