TrainDialog dialog = new TrainDialog(EncogWorkBench.getInstance()
.getMainWindow());
if (mlMethod != null)
dialog.setMethod(mlMethod);
if (dialog.process()) {
MLMethod method = dialog.getNetwork();
MLDataSet trainingData = dialog.getTrainingSet();
if (method == null) {
EncogWorkBench.displayError("Error",