private static MLMethod createHopfield() {
CreateHopfieldDialog dialog = new CreateHopfieldDialog(EncogWorkBench
.getInstance().getMainWindow());
if (dialog.process()) {
HopfieldPattern hopfield = new HopfieldPattern();
hopfield.setInputNeurons(dialog.getNeuronCount().getValue());
return hopfield.generate();
} else
return null;
}