430431432433434435436437438439440
train.addStrategy(strat); train.setNumThreads(1); // force single thread mode for (int i = 0; (i < this.iterations) && !getShouldStop() && !strat.shouldStop(); i++) { train.iteration(); } error = Math.min(error, train.getError()); }
7374757677787980818283
//Propagation train = new ResilientPropagation((ContainsFlat)method, trainingData); ((Propagation)train).fixFlatSpot(true); int iteration = 0; do { train.iteration(); iteration++; } while( train.getError()>0.01 ); count[i] = iteration; System.out.println("Begin Try #" + (i+1) + ", took " + iteration + " iterations.");
438439440441442443444445446447448
train.addStrategy(strat); train.setThreadCount(1); // force single thread mode for (int i = 0; (i < this.iterations) && !getShouldStop() && !strat.shouldStop(); i++) { train.iteration(); } error = Math.min(error, train.getError()); }