Examples of process()


Examples of org.encog.workbench.dialogs.activation.ActivationDialog.process()

  public String popup(PopupField field) {
    ActivationDialog dialog = new ActivationDialog(EncogWorkBench
        .getInstance().getMainWindow());
    dialog.setActivation(this.activationFunction);
    if (!dialog.process())
      return null;
    else {
      this.activationFunction = dialog.getActivation();
      return dialog.getActivation().getClass().getSimpleName();
    }
View Full Code Here

Examples of org.encog.workbench.dialogs.binary.DialogBinary2External.process()

    DialogBinary2External dialog = new DialogBinary2External(EncogWorkBench
        .getInstance().getMainWindow());
   
    if( inBinaryFile!=null )
      dialog.getBinaryFile().setValue(inBinaryFile.toString());
    if (dialog.process()) {
      File binaryFile = new File(dialog.getBinaryFile().getValue());
      File externFile = new File(dialog.getExternalFile().getValue());
      int fileType = dialog.getFileType().getSelectedIndex();
      DataSetCODEC codec;
      BinaryDataLoader loader;
View Full Code Here

Examples of org.encog.workbench.dialogs.binary.DialogCSV.process()

      BinaryDataLoader loader;

      if (fileType == 0) {
        DialogCSV dialog2 = new DialogCSV(EncogWorkBench.getInstance()
            .getMainWindow());
        if (dialog2.process()) {
          boolean headers = dialog2.getHeaders().getValue();
          CSVFormat format;

          if (dialog2.getDecimalComma().getValue())
            format = CSVFormat.DECIMAL_COMMA;
View Full Code Here

Examples of org.encog.workbench.dialogs.binary.DialogExternal2Binary.process()

   
    if( sourceFile!=null ) {
      dialog.getExternalFile().setValue(sourceFile.toString());
    }

    if (dialog.process()) {
      binaryFile = new File(dialog.getBinaryFile().getValue());
      File externFile = new File(dialog.getExternalFile().getValue());
      int fileType = dialog.getFileType().getSelectedIndex();
      int inputCount = dialog.getInputCount().getValue();
      int idealCount = dialog.getIdealCount().getValue();
View Full Code Here

Examples of org.encog.workbench.dialogs.config.EncogConfigDialog.process()

      ((JComboBox) dialog.getErrorCalculation().getField())
          .setSelectedIndex(1);
      break;
    }

    if (dialog.process()) {
      config.setDefaultError(dialog.getDefaultError().getValue());
      config.setThreadCount(dialog.getThreadCount().getValue());
      config.setUseOpenCL(dialog.getUseOpenCL().getValue());
      switch (((JComboBox) dialog.getErrorCalculation().getField())
          .getSelectedIndex()) {
View Full Code Here

Examples of org.encog.workbench.dialogs.createfile.CreateFileDialog.process()

    CreateFileDialog dialog = new CreateFileDialog(EncogWorkBench
        .getInstance().getMainWindow());
    dialog.setType(CreateFileType.MachineLearningMethod);
   
   
    if (dialog.process()) {
      String name = dialog.getFilename();
     
      if( name==null || name.length()==0 ) {
        EncogWorkBench.displayError("Data Missing", "Must specify a filename.");
        return;
View Full Code Here

Examples of org.encog.workbench.dialogs.createnetwork.CreateADALINEDialog.process()

  }
 
  private static MLMethod createADALINE() {
    CreateADALINEDialog dialog = new CreateADALINEDialog(EncogWorkBench
        .getInstance().getMainWindow());
    if (dialog.process()) {
      ADALINEPattern adaline = new ADALINEPattern();
      adaline.setInputNeurons(dialog.getNeuronCount().getValue());
      adaline.setOutputNeurons(dialog.getElementCount().getValue());
      return adaline.generate();
    } else
View Full Code Here

Examples of org.encog.workbench.dialogs.createnetwork.CreateART1.process()

  }
 
  private static MLMethod createART1() {
    CreateART1 dialog = new CreateART1(EncogWorkBench
        .getInstance().getMainWindow());
    if (dialog.process()) {
      ART1Pattern art1 = new ART1Pattern();
      art1.setInputNeurons(dialog.getF1().getValue());
      art1.setOutputNeurons(dialog.getF2().getValue());
      return art1.generate();
    } else
View Full Code Here

Examples of org.encog.workbench.dialogs.createnetwork.CreateAutomatic.process()

   
    dialog.getWeightTries().setValue(5);
    dialog.getIterations().setValue(25);
    dialog.getWindowSize().setValue(10);

    if (dialog.process()) {
      MLDataSet training = dialog.getTraining();     
     
      if( training == null ) {
        return null;
      }
View Full Code Here

Examples of org.encog.workbench.dialogs.createnetwork.CreateBAMDialog.process()

  }
 
  private static MLMethod createBAM() {
    CreateBAMDialog dialog = new CreateBAMDialog(EncogWorkBench
        .getInstance().getMainWindow());
    if (dialog.process()) {
      BAMPattern bam = new BAMPattern();
      bam.setF1Neurons(dialog.getLayerACount().getValue());
      bam.setF2Neurons(dialog.getLayerBCount().getValue());
      return bam.generate();
    } else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.