BasicNetwork network = NetworkUtil.createXORNetworkUntrained();
final FoldedDataSet folded = new FoldedDataSet(trainingData);
final MLTrain train = new ResilientPropagation(network, folded);
final CrossValidationKFold trainFolded = new CrossValidationKFold(train,4);
EncogUtility.trainToError(trainFolded, 0.2);
XOR.verifyXOR((MLRegression)trainFolded.getMethod(), 0.2);
}