I am training a neural network to classify images and it takes too long to finish one iteration... about five minutes and it is still not done. I am using Encog 3.1. Is there something wrong with my code?
BasicNetwork network = new BasicNetwork();
network.addLayer(new BasicLayer(null,true,5625));
network.addLayer(new BasicLayer(new ActivationSigmoid(),true,(intIdealCount+5625)/2));
network.addLayer(new BasicLayer(new ActivationSigmoid(),true,intIdealCount));
network.getStructure().finalizeStructure();
here is my training codes:
final ResilientPropagation train = new ResilientPropagation(network, trainingSet);
int epoch = 1;
do {
train.iteration();
System.out.println("Epoch #" + epoch + " Error:" + train.getError());
epoch++;
} while(train.getError() > 0.01);
Any response will be appreciated. Thank you.