From 4f76c4d6cf2e3d1bec03a636fd5af8b364b1c0f5 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 28 Jan 2016 10:36:23 +0100 Subject: fix rate --- util/convlr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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| -- cgit v1.2.3