// online training.
if (this.batchSize != 0) {
this.numThreads = 1;
}
final DetermineWorkload determine = new DetermineWorkload(
this.numThreads, (int) this.indexable.getRecordCount());
int actualThreadCount = determine.getThreadCount();
this.workers = new GradientWorker[actualThreadCount];
int index = 0;
for (final IntRange r : determine.calculateWorkers()) {
this.workers[index++] = new GradientWorker(
this.currentFlatNetwork.clone(), this,
this.indexable.openAdditional(), r.getLow(), r.getHigh(),
this.flatSpot, this.ef);
}