public class TestSRN extends TestCase {
public void performElmanTest(int input, int hidden, int ideal)
{
// we are really just making sure no array out of bounds errors occur
ElmanPattern elmanPattern = new ElmanPattern();
elmanPattern.setInputNeurons(input);
elmanPattern.addHiddenLayer(hidden);
elmanPattern.setOutputNeurons(ideal);
BasicNetwork network = (BasicNetwork)elmanPattern.generate();
MLDataSet training = RandomTrainingFactory.generate(1000, 5, network.getInputCount(), network.getOutputCount(), -1, 1);
ResilientPropagation prop = new ResilientPropagation(network,training);
prop.iteration();
prop.iteration();
}