*/
public final ErrorValue startTraining() {
ErrorValue totalTrainError = new ErrorValue(0);
while (!trainStack.getData().isEmpty()) {
try {
totalTrainError.updateValue(new ErrorValue(
executorService.submit(
new TrainNetworkSubTask(network,
trainStack.popSample())).get()));
} catch (InterruptedException | ExecutionException e) {
LOGGER.error(e.getMessage());