CreateSVMDialog dialog = new CreateSVMDialog(EncogWorkBench
.getInstance().getMainWindow());
dialog.setSVMType(SVMType.EpsilonSupportVectorRegression);
dialog.setKernelType(KernelType.RadialBasisFunction);
if (dialog.process()) {
SVMPattern svm = new SVMPattern();
svm.setInputNeurons(dialog.getInputCount().getValue());
svm.setOutputNeurons(dialog.getOutputCount().getValue());
svm.setKernelType(dialog.getKernelType());
svm.setSVMType(dialog.getSVMType());
return svm.generate();
} else
return null;
}