}
}
public void performEvaluate() {
try {
EvaluateDialog dialog = new EvaluateDialog(EncogWorkBench
.getInstance().getMainWindow());
if (dialog.process()) {
MLMethod method = dialog.getNetwork();
MLDataSet training = dialog.getTrainingSet();
double error = 0;
if (method instanceof MLError) {
error = ((MLError) method).calculateError(training);