(new File(binFile)).delete();
CSVNeuralDataSet csv = new CSVNeuralDataSet(csvFile.toString(),
inputCount, outputCount, headers);
BufferedNeuralDataSet buffer = new BufferedNeuralDataSet(new File(binFile));
buffer.beginLoad(inputCount, outputCount);
for(MLDataPair pair : csv)
{
buffer.add(pair);
}
buffer.endLoad();