SelectDialog sel = new SelectDialog(EncogWorkBench.getInstance()
.getMainWindow(), list);
sel.setVisible(true);
if (sel.getSelected() == selectInstar) {
InputInstar dialog = new InputInstar();
if (dialog.process()) {
double learnRate = dialog.getLearningRate().getValue();
boolean init = dialog.getInitWeights().getValue();
TrainInstar train = new TrainInstar((CPN)file.getObject(),trainingData,learnRate,init);
startup(file,train, dialog.getMaxError().getValue()/100.0);
}
} else if (sel.getSelected() == selectOutstar) {
InputOutstar dialog = new InputOutstar();
if (dialog.process()) {
double learnRate = dialog.getLearningRate().getValue();
TrainOutstar train = new TrainOutstar((CPN)file.getObject(),trainingData,learnRate);
startup(file,train, dialog.getMaxError().getValue()/100.0);
}
}
}