String[] parts = trainingConfig.learningAlgorithm.split("-");
topLearner = getLearningModule(parts[0]);
if (progressListener != null) {
topLearner.setProgressListener(progressListener);
}
LearningModule curModule = topLearner;
for (int i = 1; i < parts.length; i++) {
LearningModule newModule = getLearningModule(parts[i]);
if (progressListener != null) {
newModule.setProgressListener(progressListener);
}
curModule.setSubModule(newModule);
curModule = newModule;
}
}