hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1688764 - /hama/trunk/ml/src/main/java/org/apache/hama/ml/ann/SmallLayeredNeuralNetwork.java
Date Thu, 02 Jul 2015 06:07:18 GMT
Author: edwardyoon
Date: Thu Jul  2 06:07:18 2015
New Revision: 1688764

URL: http://svn.apache.org/r1688764
Log:
Removed useless operations.

Modified:
    hama/trunk/ml/src/main/java/org/apache/hama/ml/ann/SmallLayeredNeuralNetwork.java

Modified: hama/trunk/ml/src/main/java/org/apache/hama/ml/ann/SmallLayeredNeuralNetwork.java
URL: http://svn.apache.org/viewvc/hama/trunk/ml/src/main/java/org/apache/hama/ml/ann/SmallLayeredNeuralNetwork.java?rev=1688764&r1=1688763&r2=1688764&view=diff
==============================================================================
--- hama/trunk/ml/src/main/java/org/apache/hama/ml/ann/SmallLayeredNeuralNetwork.java (original)
+++ hama/trunk/ml/src/main/java/org/apache/hama/ml/ann/SmallLayeredNeuralNetwork.java Thu
Jul  2 06:07:18 2015
@@ -430,10 +430,9 @@ public class SmallLayeredNeuralNetwork e
       // add regularization
       costFuncDerivative += this.regularizationWeight
           * lastWeightMatrix.getRowVector(i).sum();
-      deltaVec.set(i, costFuncDerivative);
       deltaVec.set(
           i,
-          deltaVec.get(i)
+          costFuncDerivative
               * squashingFunction.applyDerivative(output.get(i + 1)));
     }
 



Mime
View raw message