{
MLDataSet trainingData = XOR.createNoisyXORDataSet(10);
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);