Examples of Backpropagation


Examples of org.encog.neural.networks.training.propagation.back.Backpropagation

    final double learningRate = holder.getDouble(
        MLTrainFactory.PROPERTY_LEARNING_RATE, false, 0.7);
    final double momentum = holder.getDouble(
        MLTrainFactory.PROPERTY_LEARNING_MOMENTUM, false, 0.3);

    return new Backpropagation((BasicNetwork) method, training,
        learningRate, momentum);
  }
View Full Code Here

Examples of org.encog.neural.networks.training.propagation.back.Backpropagation

    final double learningRate = holder.getDouble(
        MLTrainFactory.PROPERTY_LEARNING_RATE, false, 0.7);
    final double momentum = holder.getDouble(
        MLTrainFactory.PROPERTY_LEARNING_MOMENTUM, false, 0.3);

    return new Backpropagation((BasicNetwork) method, training,
        learningRate, momentum);
  }
View Full Code Here

Examples of org.encog.neural.networks.training.propagation.back.Backpropagation

  {
    MLDataSet trainingData = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL);
   
    BasicNetwork network = NetworkUtil.createXORNetworkUntrained();

    MLTrain bprop = new Backpropagation(network, trainingData, 0.7, 0.9);
    NetworkUtil.testTraining(trainingData,bprop,0.01);
  }
View Full Code Here

Examples of org.encog.neural.networks.training.propagation.back.Backpropagation

    BasicNetwork network1 = NetworkUtil.createXORNetworkUntrained();
    BasicNetwork network2 = NetworkUtil.createXORNetworkUntrained();
    MLDataSet trainingData = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL);
   
    // train network 1, no continue
    Backpropagation rprop1 = new Backpropagation(network1,trainingData,0.4,0.4);
    rprop1.iteration();
    rprop1.iteration();
    rprop1.iteration();
    rprop1.iteration();
   
    // train network 2, continue
    Backpropagation rprop2 = new Backpropagation(network2,trainingData,0.4,0.4);
    rprop2.iteration();
    rprop2.iteration();
    TrainingContinuation state = rprop2.pause();
    rprop2 = new Backpropagation(network2,trainingData,0.4,0.4);
    rprop2.resume(state);
    rprop2.iteration();
    rprop2.iteration();
   
    // verify weights are the same
    double[] weights1 = NetworkCODEC.networkToArray(network1);
    double[] weights2 = NetworkCODEC.networkToArray(network2);
   
    Assert.assertEquals(rprop1.getError(), rprop2.getError(), 0.01);
    Assert.assertEquals(weights1.length, weights2.length);
    Assert.assertArrayEquals(weights1, weights2, 0.01);
   
  }
View Full Code Here

Examples of org.encog.neural.networks.training.propagation.back.Backpropagation

  /**
   * {@inheritDoc}
   */
  @Override
  public void createTrainer(final boolean singleThreaded) {
    final Propagation train = new Backpropagation(getNetwork(),
        getTraining(), getLearningRate(), getMomentum());

    if (singleThreaded) {
      train.setThreadCount(1);
    } else {
      train.setThreadCount(0);
    }

    for (final Strategy strategy : getStrategies()) {
      train.addStrategy(strategy);
    }

    setTrain(train);
  }
View Full Code Here

Examples of org.encog.neural.networks.training.propagation.back.Backpropagation

public class BackpropagationFactory implements EnsembleTrainFactory {

  @Override
  public MLTrain getTraining(MLMethod mlMethod, MLDataSet trainingData) {
    return (MLTrain) new Backpropagation((BasicNetwork) mlMethod, trainingData);
  }
View Full Code Here

Examples of org.neuroph.nnet.learning.BackPropagation

                NeuronProperties neuronProperties = new NeuronProperties(transferFunctionType, useBias);
    MultiLayerPerceptron nnet = new MultiLayerPerceptron(layerSizes, neuronProperties);
               
                // set learning rule
                if (learningRule.getName().equals(BackPropagation.class.getName()))  {
                    nnet.setLearningRule(new BackPropagation());
                } else if (learningRule.getName().equals(MomentumBackpropagation.class.getName())) {
                    nnet.setLearningRule(new MomentumBackpropagation());
                } else if (learningRule.getName().equals(DynamicBackPropagation.class.getName())) {
                    nnet.setLearningRule(new DynamicBackPropagation());
                }
View Full Code Here

Examples of zdenekdrahos.AI.BackPropagation.BackPropagation

    private void loadDefaultSettings() {
        settings = new TrainingSettings();
        settings.separator = new DataSeparator();
        settings.feedForward = new FeedForward();
        settings.backPropagation = new BackPropagation();
        settings.simulation = new Simulation();
        settings.errorCalculator = new LeastSquares();
        settings.meanCalculator = new Mean();
    }
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.