You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by to...@apache.org on 2012/05/06 22:26:26 UTC

svn commit: r1334760 - /labs/yay/trunk/core/src/main/java/org/apache/yay/NeuralNetworkFactory.java

Author: tommaso
Date: Sun May  6 20:26:26 2012
New Revision: 1334760

URL: http://svn.apache.org/viewvc?rev=1334760&view=rev
Log:
the predict() method should use the updated weights matrix

Modified:
    labs/yay/trunk/core/src/main/java/org/apache/yay/NeuralNetworkFactory.java

Modified: labs/yay/trunk/core/src/main/java/org/apache/yay/NeuralNetworkFactory.java
URL: http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/NeuralNetworkFactory.java?rev=1334760&r1=1334759&r2=1334760&view=diff
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/NeuralNetworkFactory.java (original)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/NeuralNetworkFactory.java Sun May  6 20:26:26 2012
@@ -58,7 +58,7 @@ public class NeuralNetworkFactory {
       public Double predict(Example<Double> input) throws PredictionException {
         try {
           Vector<Double> inputVector = toVector(input.getFeatureVector());
-          return predictionStrategy.predictOutput(inputVector, weightsMatrixSet);
+          return predictionStrategy.predictOutput(inputVector, updatedWeightsMatrixSet);
         } catch (Exception e) {
           throw new PredictionException(e);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org