pattern.setInputNeurons(training.getInputSize());
pattern.setOutputNeurons(training.getIdealSize());
pattern.setActivationFunction(dialog.getActivationFunction());
IncrementalPruneTab tab = new IncrementalPruneTab(
dialog.getIterations().getValue(),
dialog.getWeightTries().getValue(),
dialog.getWindowSize().getValue(),
training,
pattern);
for (int i = 0; i < dialog.getHidden().getModel().size(); i++) {
String str = (String) dialog.getHidden().getModel()
.getElementAt(i);
String lowStr = BotUtil.extract(str,"low=",".",0);
String highStr = BotUtil.extract(str,"high=",",",0);
int low = Integer.parseInt(lowStr);
int high = Integer.parseInt(highStr);
tab.addHiddenRange(low,high);
}
EncogWorkBench.getInstance().getMainWindow().getTabManager().openModalTab(tab, "Incremental Prune");