BufferedNeuralDataSet trainingData = new BufferedNeuralDataSet(file);
MLDataPair pair = BasicMLDataPair.createPair(input,
output);
trainingData.beginLoad(input, output);
for (int i = 0; i < elements; i++) {
trainingData.add(pair);
}
trainingData.endLoad();
}