Package org.encog.ml.train.strategy

Examples of org.encog.ml.train.strategy.HybridStrategy


    final MLTrain trainMain = new Backpropagation(network, trainingSet,0.000001, 0.0);

    ((Propagation)trainMain).setNumThreads(1);
    final StopTrainingStrategy stop = new StopTrainingStrategy();
    trainMain.addStrategy(new Greedy());
    trainMain.addStrategy(new HybridStrategy(trainAlt));
    trainMain.addStrategy(stop);

    int epoch = 0;
    while (!stop.shouldStop()) {
      trainMain.iteration();
View Full Code Here


    final MLTrain trainMain = new Backpropagation(network, trainingSet,0.000001, 0.0);

    ((Propagation)trainMain).setNumThreads(1);
    final StopTrainingStrategy stop = new StopTrainingStrategy();
    trainMain.addStrategy(new Greedy());
    trainMain.addStrategy(new HybridStrategy(trainAlt));
    trainMain.addStrategy(stop);

    int epoch = 0;
    while (!stop.shouldStop()) {
      trainMain.iteration();
View Full Code Here

 
  public void testHybrid()
  {
    MockTrain alt = new MockTrain();
   
    HybridStrategy strategy = new HybridStrategy(alt,0.001,2,5 );
   
    MockTrain mock = new MockTrain();
    mock.addStrategy(strategy);
    mock.setError(0.05);
    mock.iteration();
View Full Code Here

 
  public void testHybrid()
  {
    MockTrain alt = new MockTrain();
   
    HybridStrategy strategy = new HybridStrategy(alt,0.001,2,5 );
   
    MockTrain mock = new MockTrain();
    mock.addStrategy(strategy);
    mock.setError(0.05);
    mock.iteration();
View Full Code Here

TOP

Related Classes of org.encog.ml.train.strategy.HybridStrategy

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.