assertEquals(2,trainingData.getInputSize());
EnsembleTrainFactory trainingStrategy = new ResilientPropagationFactory();
MultiLayerPerceptronFactory mlpFactory = new MultiLayerPerceptronFactory();
ArrayList<Integer> middleLayers = new ArrayList<Integer>();
middleLayers.add(4);
mlpFactory.setParameters(middleLayers, new ActivationSigmoid());
MajorityVoting mv = new MajorityVoting();
Bagging testBagging = new Bagging(numSplits, dataSetSize, mlpFactory, trainingStrategy, mv);
testBagging.setTrainingData(trainingData);
testBagging.train(1E-2,1E-2,(EnsembleDataSet) trainingData);
for (int j = 0; j < trainingData.size(); j++) {