MLDataSet training = EncoderTrainingFactory.generateTraining(4, false);
BasicNetwork network = EncogUtility.simpleFeedForward(4, 2, 0, 4, true);
(new ConsistentRandomizer(-1,1,50)).randomize(network);
ResilientPropagation rprop = new ResilientPropagation(network,training);
for(int i=0;i<5;i++) {
rprop.iteration();
}
Assert.assertArrayEquals(EXPECTED_WEIGHTS1, network.getFlat().getWeights(),0.0001);
for(int i=0;i<5;i++) {
rprop.iteration();
}