private MLMethod method;
private MLDataSet training;
public void perform(Frame owner) {
try {
final InputValidationChart dialog = new InputValidationChart(
EncogWorkBench.getInstance().getMainWindow());
if (dialog.process()) {
method = dialog.getNetwork();
training = dialog.getTrainingSet();
if( method instanceof MLContext )
((MLContext)method).clearContext();
ResultValidationChart chart = new ResultValidationChart();