}
private void evalBinary() {
File file = new File("temp.egb");
final BasicMLDataSet training = RandomTrainingFactory.generate(
1000, 10000, 10, 10, -1, 1);
// create the binary file
file.delete();
BufferedNeuralDataSet training2 = new BufferedNeuralDataSet(file);
training2.load(training);
final long start = System.currentTimeMillis();
final long stop = start + (10 * Evaluate.MILIS);
int record = 0;
MLDataPair pair = BasicMLDataPair.createPair(10, 10);
int iterations = 0;
while (System.currentTimeMillis() < stop) {
iterations++;
training2.getRecord(record++, pair);
if (record >= training2.getRecordCount())
record = 0;
}
training.close();
iterations /= 100000;
this.report.report(EncogBenchmark.STEPS, EncogBenchmark.STEP4,
"Disk(binary) dataset, result: "
+ Format.formatInteger(iterations));