for(int i=0;i<TRIES;i++) {
MLMethod method = EncogUtility.simpleFeedForward(INPUT_OUTPUT_COUNT,
HIDDEN_COUNT, 0, INPUT_OUTPUT_COUNT, false);
Propagation train = new Backpropagation((ContainsFlat)method, trainingData,1.7,0);
//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.");
}
System.out.println("Tries: " + TRIES);