Package org.encog.neural.cpn

Examples of org.encog.neural.cpn.CPN


  public final TempDir TEMP_DIR = new TempDir();
  public final File EG_FILENAME = TEMP_DIR.createFile("encogtest.eg");
  public final File SERIAL_FILENAME = TEMP_DIR.createFile("encogtest.ser");
 
  private CPN create() {
    CPN result = new CPN(5, 4, 3, 2);
    return result;
  }
View Full Code Here


    return result;
  }
 
  public void testPersistEG()
  {
    CPN network = create();

    EncogDirectoryPersistence.saveObject(EG_FILENAME, network);
    CPN network2 = (CPN)EncogDirectoryPersistence.loadObject(EG_FILENAME);

    validate(network2);
  }
View Full Code Here

    validate(network2);
  }
 
  public void testPersistSerial() throws IOException, ClassNotFoundException
  {
    CPN network = create();
   
    SerializeObject.save(SERIAL_FILENAME, network);
    CPN network2 = (CPN)SerializeObject.load(SERIAL_FILENAME);
       
    validate(network2);
  }
View Full Code Here

   * Generate the network.
   *
   * @return The generated network.
   */
  public final MLMethod generate() {
    return new CPN(inputCount,instarCount,outstarCount,1);
  }
View Full Code Here

    }
  }

  public CPN createNetwork()
  {   
    CPN result = new CPN(this.inputNeurons, this.instarNeurons, this.outstarNeurons,1);
        return result;
  }
View Full Code Here

 
  public void run()
  {
    prepareInput();
    normalizeInput();
    CPN network = createNetwork();
    MLDataSet training = generateTraining(this.input1,this.ideal1);
    trainInstar(network,training);
    trainOutstar(network,training);
    test(network,PATTERN1,this.input1);
  }
View Full Code Here

      report.tablePair("Output Activation Function", neat.getOutputActivationFunction().getClass().getSimpleName());
      report.tablePair("NEAT Activation Function", neat.getActivationFunction().getClass().getSimpleName());
    }
   
    if( method instanceof CPN ) {
      CPN cpn = (CPN)method;
      report.tablePair("Instar Count", Format.formatInteger(cpn.getInstarCount()));
      report.tablePair("Outstar Count", Format.formatInteger(cpn.getOutstarCount()));     
    }
   
    report.endTable();
   
    if (this.method instanceof RBFNetwork) {
View Full Code Here

   * Generate the network.
   *
   * @return The generated network.
   */
  public MLMethod generate() {
    return new CPN(inputCount,instarCount,outstarCount,1);
  }
View Full Code Here

  public final TempDir TEMP_DIR = new TempDir();
  public final File EG_FILENAME = TEMP_DIR.createFile("encogtest.eg");
  public final File SERIAL_FILENAME = TEMP_DIR.createFile("encogtest.ser");
 
  private CPN create() {
    CPN result = new CPN(5, 4, 3, 2);
    return result;
  }
View Full Code Here

    return result;
  }
 
  public void testPersistEG()
  {
    CPN network = create();

    EncogDirectoryPersistence.saveObject(EG_FILENAME, network);
    CPN network2 = (CPN)EncogDirectoryPersistence.loadObject(EG_FILENAME);

    validate(network2);
  }
View Full Code Here

TOP

Related Classes of org.encog.neural.cpn.CPN

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.