horn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject incubator-horn git commit: Quick fix from HORN-9
Date Mon, 23 Nov 2015 23:36:26 GMT
Repository: incubator-horn
Updated Branches:
  refs/heads/master 22cc9742b -> 99c3f4e8a


Quick fix from HORN-9


Project: http://git-wip-us.apache.org/repos/asf/incubator-horn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-horn/commit/99c3f4e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-horn/tree/99c3f4e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-horn/diff/99c3f4e8

Branch: refs/heads/master
Commit: 99c3f4e8ab393ba19355a280ac141d4827fb7140
Parents: 22cc974
Author: Zachary Jaffee <zjaffee@us.ibm.com>
Authored: Mon Nov 23 14:02:46 2015 -0500
Committer: Zachary Jaffee <zjaffee@us.ibm.com>
Committed: Mon Nov 23 14:02:46 2015 -0500

----------------------------------------------------------------------
 src/main/java/org/apache/horn/funcs/Sigmoid.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-horn/blob/99c3f4e8/src/main/java/org/apache/horn/funcs/Sigmoid.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/horn/funcs/Sigmoid.java b/src/main/java/org/apache/horn/funcs/Sigmoid.java
index 4472b8a..cc393e3 100644
--- a/src/main/java/org/apache/horn/funcs/Sigmoid.java
+++ b/src/main/java/org/apache/horn/funcs/Sigmoid.java
@@ -35,7 +35,7 @@ public class Sigmoid extends DoubleFunction {
 
   @Override
   public double applyDerivative(double value) {
-    return value * (1 - value);
+    return apply(value) * (1 - apply(value));
   }
 
 }


Mime
View raw message