dialog.getStepGamma().setValue(SVMTrain.DEFAULT_GAMMA_STEP);
dialog.getBeginningC().setValue(SVMTrain.DEFAULT_CONST_BEGIN);
dialog.getEndingC().setValue(SVMTrain.DEFAULT_CONST_END);
dialog.getStepC().setValue(SVMTrain.DEFAULT_CONST_STEP);
if (dialog.process()) {
double maxError = dialog.getMaxError().getValue() / 100.0;
SVMSearchJob train = new SVMSearchJob(method, trainingData, null);
train.setGammaBegin(dialog.getBeginningGamma().getValue());
train.setGammaEnd(dialog.getEndingGamma().getValue());
train.setGammaStep(dialog.getStepGamma().getValue());