if (dialog.process()) {
int elements = dialog.getElements().getValue();
int input = dialog.getInput().getValue();
int output = dialog.getIdeal().getValue();
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();
}
}