/**
* {@inheritDoc}
*/
@Override
public void createTrainer(final boolean singleThreaded) {
final Propagation train = new Backpropagation(getNetwork(),
getTraining(), getLearningRate(), getMomentum());
if (singleThreaded) {
train.setThreadCount(1);
} else {
train.setThreadCount(0);
}
for (final Strategy strategy : getStrategies()) {
train.addStrategy(strategy);
}
setTrain(train);
}