return;
}
if (method instanceof HopfieldNetwork) {
HopfieldNetwork hp = (HopfieldNetwork) method;
ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
.getSelectedValue();
for (MLDataPair pair : trainingData) {
hp.addPattern(pair.getInput());
}
if (EncogWorkBench.askQuestion("Hopfield",
"Training done, save?")) {
file.save();
}
} else if (method instanceof SOM) {
ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
.getSelectedValue();
performSOM(file, trainingData);
} else if (method instanceof SVM) {
ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
.getSelectedValue();
performSVM(file, trainingData);
} else if (method instanceof CPN) {
ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
.getSelectedValue();
performCPN(file, trainingData);
} else if (method instanceof BasicNetwork || method instanceof RBFNetwork ) {
ChooseBasicNetworkTrainingMethod choose = new ChooseBasicNetworkTrainingMethod(
EncogWorkBench.getInstance().getMainWindow(),method);
if (choose.process()) {
ProjectEGFile file = (ProjectEGFile) dialog
.getComboNetwork().getSelectedValue();
switch (choose.getType()) {
case SCG:
performSCG(file, trainingData);