}
private static MLMethod createCPN() {
CreateCPNDialog dialog = new CreateCPNDialog(EncogWorkBench
.getInstance().getMainWindow());
if (dialog.process()) {
CPNPattern cpn = new CPNPattern();
cpn.setInputNeurons(dialog.getInputCount().getValue());
cpn.setInstarCount(dialog.getInstarCount().getValue());
cpn.setOutstarCount(dialog.getOutstarCount().getValue());
return cpn.generate();