summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-01-28 10:36:23 +0100
committerPatrick Simianer <p@simianer.de>2016-01-28 10:36:23 +0100
commit4f76c4d6cf2e3d1bec03a636fd5af8b364b1c0f5 (patch)
tree2e24765c59478edd39c4faa7e6957a88f1e0ccb0 /util
parentd85ce7be7dd2d59603d6ec6b3f8b1bf2f208d2b2 (diff)
fix rate
Diffstat (limited to 'util')
-rwxr-xr-xutil/convlr.rb2
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|