return null;
}
private static BasicNetwork createAutomatic() {
CreateAutomatic dialog = new CreateAutomatic(EncogWorkBench
.getInstance().getMainWindow());
dialog.setActivationFunction(new ActivationTANH());
dialog.getWeightTries().setValue(5);
dialog.getIterations().setValue(25);
dialog.getWindowSize().setValue(10);
if (dialog.process()) {
MLDataSet training = dialog.getTraining();
if( training == null ) {
return null;
}
FeedForwardPattern pattern = new FeedForwardPattern();
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);