Package com.digiburo.backprop1b.network

Examples of com.digiburo.backprop1b.network.Pattern


    // write above answers

    BufferedWriter bw = new BufferedWriter(new FileWriter(POS_FILENAME));

    for (int ii = 0; ii < limit; ii++) {
      Pattern pp = pl.get(ii);
      double[] output = pp.getOutput();
      if (output[0] > 0.5) {
        writeData(bw, pp);
      }
    }

    bw.close();

    // write below answers

    bw = new BufferedWriter(new FileWriter(NEG_FILENAME));

    for (int ii = 0; ii < limit; ii++) {
      Pattern pp = pl.get(ii);
      double[] output = pp.getOutput();
      if (output[0] < 0.5) {
        writeData(bw, pp);
      }
    }
View Full Code Here


   *            index into PatternList
   */
  public void setPattern(int ndx) {
    // System.out.println("set pattern " + ndx);

    Pattern pp = training.get(ndx);

    double[] original = pp.getInput();

    for (int ii = 0; ii < original.length; ii++) {
      pattern[ii] = original[ii];

      // System.out.println(ii + " " + original[ii]);
View Full Code Here

TOP

Related Classes of com.digiburo.backprop1b.network.Pattern

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.