Package org.encog.ml.train.strategy

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


    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()) {
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()) {
View Full Code Here

    BasicNetwork network = (BasicNetwork)pattern.generate();
    MockTrain.setFirstElement(3.0,network);
   
    MockTrain mock = new MockTrain();
    mock.setNetwork(network);
    Greedy strategy = new Greedy();
    mock.addStrategy(strategy);
   
    // simulate an improvement
    mock.setError(0.01);
    mock.simulate(0.04, 5.0);
View Full Code Here

    BasicNetwork network = (BasicNetwork)pattern.generate();
    MockTrain.setFirstElement(3.0,network);
   
    MockTrain mock = new MockTrain();
    mock.setNetwork(network);
    Greedy strategy = new Greedy();
    mock.addStrategy(strategy);
   
    // simulate an improvement
    mock.setError(0.01);
    mock.simulate(0.04, 5.0);
View Full Code Here

TOP

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

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.