Package org.encog.workbench.dialogs.training.methods

Examples of org.encog.workbench.dialogs.training.methods.InputSearchSVM


    }

  }

  private void performSVMSearch(ProjectEGFile file, MLDataSet trainingData) {
    InputSearchSVM dialog = new InputSearchSVM();
    SVM method = (SVM) file.getObject();

    dialog.getBeginningGamma().setValue(SVMTrain.DEFAULT_GAMMA_BEGIN);
    dialog.getEndingGamma().setValue(SVMTrain.DEFAULT_GAMMA_END);
    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());
      train.setConstBegin(dialog.getBeginningC().getValue());
      train.setConstEnd(dialog.getEndingC().getValue());
      train.setConstStep(dialog.getStepC().getValue());
      EngineConcurrency.getInstance().setThreadCount(dialog.getThreadCount().getValue());
      startup(file, train, maxError);
    }
  }
View Full Code Here

TOP

Related Classes of org.encog.workbench.dialogs.training.methods.InputSearchSVM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.