Examples of shouldStop()


Examples of org.encog.app.analyst.csv.normalize.AnalystNormalizeCSV.shouldStop()

    final boolean headers = getScript().expectInputHeaders(sourceID);
    norm.analyze(sourceFile, headers, format, getAnalyst());
    norm.setProduceOutputHeaders(true);
    norm.normalize(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return norm.shouldStop();
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.app.analyst.csv.process.AnalystProcess.shouldStop()

    process.setReport(new AnalystReportBridge(getAnalyst()));
    final boolean headers = getScript().expectInputHeaders(sourceID);
    process.analyze(sourceFile, headers, format);
    process.process(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return process.shouldStop();
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.app.analyst.csv.segregate.SegregateCSV.shouldStop()

    seg.analyze(sourceFile, headers, inputFormat);
    seg.setOutputFormat(outputFormat);

    seg.process();
    getAnalyst().setCurrentQuantTask(null);
    return seg.shouldStop();
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.app.analyst.csv.segregate.SegregateCSV.shouldStop()

    seg.setReport(new AnalystReportBridge(getAnalyst()));
    seg.analyze(sourceFile, headers, format);

    seg.process();
    getAnalyst().setCurrentQuantTask(null);
    return seg.shouldStop();
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.app.analyst.csv.shuffle.ShuffleCSV.shouldStop()

    final boolean headers = getScript().expectInputHeaders(sourceID);
    norm.analyze(sourceFile, headers, inputFormat);
    norm.setOutputFormat(outputFormat);
    norm.process(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return norm.shouldStop();
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.app.analyst.csv.shuffle.ShuffleCSV.shouldStop()

    norm.setReport(new AnalystReportBridge(getAnalyst()));
    final boolean headers = getScript().expectInputHeaders(sourceID);
    norm.analyze(sourceFile, headers, format);
    norm.process(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return norm.shouldStop();
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.ml.train.strategy.StopTrainingStrategy.shouldStop()

    trainMain.addStrategy(new Greedy());
    trainMain.addStrategy(new HybridStrategy(trainAlt));
    trainMain.addStrategy(stop);

    int epoch = 0;
    while (!stop.shouldStop()) {
      trainMain.iteration();
      System.out.println("Training " + what + ", Epoch #" + epoch
          + " Error:" + trainMain.getError());
      epoch++;
    }
View Full Code Here

Examples of org.encog.ml.train.strategy.StopTrainingStrategy.shouldStop()

      train.addStrategy(strat);
      train.setNumThreads(1); // force single thread mode

      for (int i = 0; (i < this.iterations) && !getShouldStop()
          && !strat.shouldStop(); i++) {
        train.iteration();
      }

      error = Math.min(error, train.getError());
    }
View Full Code Here

Examples of org.encog.ml.train.strategy.StopTrainingStrategy.shouldStop()

    trainMain.addStrategy(new Greedy());
    trainMain.addStrategy(new HybridStrategy(trainAlt));
    trainMain.addStrategy(stop);

    int epoch = 0;
    while (!stop.shouldStop()) {
      trainMain.iteration();
      System.out.println("Training " + what + ", Epoch #" + epoch
          + " Error:" + trainMain.getError());
      epoch++;
    }
View Full Code Here

Examples of org.encog.ml.train.strategy.StopTrainingStrategy.shouldStop()

  {
    StopTrainingStrategy strategy = new StopTrainingStrategy(0.01,2);
    MockTrain mock = new MockTrain();
    mock.addStrategy(strategy);
    mock.setError(0.05);
    Assert.assertFalse(strategy.shouldStop());
    mock.iteration();
    mock.iteration();
    mock.iteration();
    mock.iteration();
    Assert.assertTrue(strategy.shouldStop());
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.