Package org.encog.neural.networks

Examples of org.encog.neural.networks.BasicNetwork.calculateError()


   
    // train the neural network
    EncogUtility.trainConsole( jordanNetwork, trainingSet, 1);
    EncogUtility.trainConsole( ffNetwork, trainingSet, 1);
   
    System.out.println("Final Jordan Error: " + Format.formatPercent(jordanNetwork.calculateError(trainingSet)));
    System.out.println("Final Feedforwd Error: " + Format.formatPercent(jordanNetwork.calculateError(trainingSet)));
   
    System.out.println("However, the error rate can be misleading.  Consider the evaluations of each network.");
   
    System.out.println("Feedforward Evaluation:");
View Full Code Here


    // train the neural network
    EncogUtility.trainConsole( jordanNetwork, trainingSet, 1);
    EncogUtility.trainConsole( ffNetwork, trainingSet, 1);
   
    System.out.println("Final Jordan Error: " + Format.formatPercent(jordanNetwork.calculateError(trainingSet)));
    System.out.println("Final Feedforwd Error: " + Format.formatPercent(jordanNetwork.calculateError(trainingSet)));
   
    System.out.println("However, the error rate can be misleading.  Consider the evaluations of each network.");
   
    System.out.println("Feedforward Evaluation:");
    EncogUtility.evaluate(ffNetwork, trainingSet);
View Full Code Here

    do {
      train.iteration();
    } while (train.getError() > 0.009);

    double e = network.calculateError(trainingSet);
    System.out.println("Network traiined to error: " + e);

    System.out.println("Saving network");
    SerializeObject.save(new File(FILENAME), network);
  }
View Full Code Here

  public void loadAndEvaluate() throws IOException, ClassNotFoundException {
    System.out.println("Loading network");
    BasicNetwork network = (BasicNetwork) SerializeObject.load(new File(FILENAME));
    MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
    double e = network.calculateError(trainingSet);
    System.out
        .println("Loaded network's error is(should be same as above): "
            + e);
  }
View Full Code Here

          .println("Epoch #" + epoch + " Error:" + train.getError());
      epoch++;
    } while(train.getError() > 0.01);
   
    //
    System.out.println("Error:" + network.calculateError(training));
   
    // test it
    for(int i=0;i<DIGITS.length;i++)
    {
      int output = network.winner(image2data(DIGITS[i]));
View Full Code Here

    do {
      train.iteration();
    } while (train.getError() > 0.009);

    double e = network.calculateError(trainingSet);
    System.out.println("Network traiined to error: " + e);

    System.out.println("Saving network");
    EncogDirectoryPersistence.saveObject(new File(FILENAME), network);
  }
View Full Code Here

    System.out.println("Loading network");

    BasicNetwork network = (BasicNetwork)EncogDirectoryPersistence.loadObject(new File(FILENAME));

    MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
    double e = network.calculateError(trainingSet);
    System.out
        .println("Loaded network's error is(should be same as above): "
            + e);
  }
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.