Package org.encog.neural.pattern

Examples of org.encog.neural.pattern.FeedForwardPattern.generate()


          feedforward.addHiddenLayer(neuronCount);
        }
      }
      feedforward.setInputNeurons(dialog.getInputCount().getValue());
      feedforward.setOutputNeurons(dialog.getOutputCount().getValue());
      return feedforward.generate();
    }
    return null;

  }
View Full Code Here


    }
    if (hidden2 > 0) {
      pattern.addHiddenLayer(hidden2);
    }

    final BasicNetwork network = (BasicNetwork)pattern.generate();
    network.reset();
    return network;
  }

  /**
 
View Full Code Here

  public void testReset()
  {
    FeedForwardPattern pattern = new FeedForwardPattern();
    pattern.setInputNeurons(1);
    pattern.setOutputNeurons(1);
    BasicNetwork network = (BasicNetwork)pattern.generate();
   
    ResetStrategy strategy = new ResetStrategy(0.95,2);
    MockTrain mock = new MockTrain();
    mock.setNetwork(network);
    mock.addStrategy(strategy);
View Full Code Here

  public void testSmart()
  {
    FeedForwardPattern pattern = new FeedForwardPattern();
    pattern.setInputNeurons(1);
    pattern.setOutputNeurons(1);
    BasicNetwork network = (BasicNetwork)pattern.generate();
   
    SmartLearningRate strategy1 = new SmartLearningRate();
    SmartMomentum strategy2 = new SmartMomentum();
    MockTrain mock = new MockTrain();
    mock.setNetwork(network);
View Full Code Here

  public void testGreedy()
  {
    FeedForwardPattern pattern = new FeedForwardPattern();
    pattern.setInputNeurons(1);
    pattern.setOutputNeurons(1);
    BasicNetwork network = (BasicNetwork)pattern.generate();
    MockTrain.setFirstElement(3.0,network);
   
    MockTrain mock = new MockTrain();
    mock.setNetwork(network);
    Greedy strategy = new Greedy();
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.