EncogUtility.saveCSV(targetFile, CSVFormat.ENGLISH, trainingData);
}
}
public static void generateRandom(String name) throws IOException {
RandomTrainingDataDialog dialog = new RandomTrainingDataDialog(
EncogWorkBench.getInstance().getMainWindow());
dialog.getHigh().setValue(1);
dialog.getLow().setValue(-1);
if (dialog.process()) {
double high = dialog.getHigh().getValue();
double low = dialog.getLow().getValue();
int elements = dialog.getElements().getValue();
int input = dialog.getColumns().getValue();
File targetFile = new File(EncogWorkBench.getInstance()
.getProjectDirectory(), name);
MLDataSet trainingData = RandomTrainingFactory.generate(