Examples of XorInputProvider


Examples of com.github.neuralnetworks.samples.xor.XorInputProvider

    public void testMLPSigmoidBP() {
  // create multi layer perceptron with one hidden layer and bias
  NeuralNetworkImpl mlp = NNFactory.mlpSigmoid(new int[] { 2, 8, 1 }, true);

  // create training and testing input providers
  XorInputProvider trainingInput = new XorInputProvider(10000);
  XorInputProvider testingInput = new XorInputProvider(4);

  // create backpropagation trainer for the network
  BackPropagationTrainer<?> bpt = TrainerFactory.backPropagation(mlp, trainingInput, testingInput, new XorOutputError(), new NNRandomInitializer(new MersenneTwisterRandomInitializer(-0.01f, 0.01f)), 1f, 0.5f, 0f, 0f);

  // add logging
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.