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 2013/06/19 15:20:04 UTC

svn commit: r1494607 - /labs/yay/trunk/core/src/main/java/org/apache/yay/core/BackPropagationLearningStrategy.java

Author: tommaso
Date: Wed Jun 19 13:20:03 2013
New Revision: 1494607

URL: http://svn.apache.org/r1494607
Log:
backprop learning must use supplied prediction strategy

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

Modified: labs/yay/trunk/core/src/main/java/org/apache/yay/core/BackPropagationLearningStrategy.java
URL: http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/core/BackPropagationLearningStrategy.java?rev=1494607&r1=1494606&r2=1494607&view=diff
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/core/BackPropagationLearningStrategy.java (original)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/core/BackPropagationLearningStrategy.java Wed Jun 19 13:20:03 2013
@@ -70,7 +70,7 @@ public class BackPropagationLearningStra
     try {
       int iterations = 0;
 
-      NeuralNetwork hypothesis = NeuralNetworkFactory.create(weightsMatrixSet, new VoidLearningStrategy<Double, Double>(), new FeedForwardStrategy(new SigmoidFunction()), new MaxSelectionFunction<Double>());
+      NeuralNetwork hypothesis = NeuralNetworkFactory.create(weightsMatrixSet, new VoidLearningStrategy<Double, Double>(), predictionStrategy, new MaxSelectionFunction<Double>());
 
       double cost = Double.MAX_VALUE;
       while (true) {



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