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: [email protected]
For additional commands, e-mail: [email protected]