Examples of process()


Examples of org.encog.ml.data.cross.KFoldCrossvalidation.process()

   * @return The trained method.
   */
  public MLMethod crossvalidate(int k, boolean shuffle) {
    KFoldCrossvalidation cross = new KFoldCrossvalidation(
        this.trainingDataset, k);
    cross.process(shuffle);

    int foldNumber = 0;
    for (DataFold fold : cross.getFolds()) {
      foldNumber++;
      report.report(k, foldNumber, "Fold #" + foldNumber);
View Full Code Here

Examples of org.encog.ml.ea.score.parallel.ParallelScore.process()

    // score the initial population
    final ParallelScore pscore = new ParallelScore(getPopulation(),
        getCODEC(), new ArrayList<AdjustScore>(), getScoreFunction(),
        this.actualThreadCount);
    pscore.setThreadCount(this.actualThreadCount);
    pscore.process();
    this.actualThreadCount = pscore.getThreadCount();

    // start up the thread pool
    if (this.actualThreadCount == 1) {
      this.taskExecutor = Executors.newSingleThreadScheduledExecutor();
View Full Code Here

Examples of org.encog.util.arrayutil.NormalizeArray.process()

        NormalizeArray norm = new NormalizeArray();
        norm.setNormalizedHigh( hi);
        norm.setNormalizedLow( lo);

        // create arrays to hold the normalized sunspots
        normalizedSunspots = norm.process(SUNSPOTS);
        double[] test = norm.process(SUNSPOTS);
        closedLoopSunspots = EngineArray.arrayCopy(normalizedSunspots);

  }
 
View Full Code Here

Examples of org.encog.util.arrayutil.TemporalWindowArray.process()

 
  public MLDataSet generateTraining() {
   
    TemporalWindowArray temp = new TemporalWindowArray(WINDOW_SIZE, 1);
    temp.analyze(this.normalizedSunspots);
    return temp.process(this.normalizedSunspots);
  }
 
  public BasicNetwork createNetwork()
  {
    BasicNetwork network = new BasicNetwork();
View Full Code Here

Examples of org.encog.util.benchmark.EncogBenchmark.process()

    Encog.getInstance().shutdown();
  }

  public String run() {
    final EncogBenchmark mark = new EncogBenchmark(new ConsoleStatusReportable());
    String result = mark.process();

    return result;
  }
}
View Full Code Here

Examples of org.encog.util.normalize.DataNormalization.process()

        norm.addOutputField(
          new OutputFieldRangeMapped(a,0.1,0.9));
        
        norm.addOutputField(new OutputFieldRangeMapped(b,0.1,0.9));
        
        norm.process()
  }
 
}
View Full Code Here

Examples of org.encog.workbench.dialogs.EvaluateDialog.process()

  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;
View Full Code Here

Examples of org.encog.workbench.dialogs.ImportExportDialog.process()

          codec = new CSVDataCODEC(externFile, format, headers,
              inputCount, idealCount, dialog.getContainsSignificance().getValue());
          loader = new BinaryDataLoader(codec);
          ImportExportDialog dlg = new ImportExportDialog(loader,
              binaryFile, true);
          dlg.process(done);
        }
      } else if (fileType == 1) {
        codec = new ExcelCODEC(externFile,
            inputCount, idealCount);
        loader = new BinaryDataLoader(codec);
View Full Code Here

Examples of org.encog.workbench.dialogs.RandomizeNetworkDialog.process()

    dialog.getConstLow().setValue(-1);
    dialog.getSeedValue().setValue(1000);
    dialog.getConstantValue().setValue(0);
    dialog.getPerturbPercent().setValue(0.01);

    if (dialog.process()) {
      switch (dialog.getCurrentTab()) {
      case 0:
        optionRandomize(dialog);
        break;
View Full Code Here

Examples of org.encog.workbench.dialogs.SaveImageDialog.process()

      SaveImageDialog dialog = new SaveImageDialog(EncogWorkBench.getInstance().getMainWindow());
     
      dialog.getImageWidth().setValue(640);
      dialog.getImageHeight().setValue(480);
     
      if( dialog.process() ) {
                       
            File filename = new File(dialog.getTargetFile().getValue());
            int width = dialog.getImageWidth().getValue();
            int height = dialog.getImageHeight().getValue();
           
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.