Package org.encog.persist

Examples of org.encog.persist.EncogWriteHelper.writeLine()


    for (final ActivationFunction af : flat.getActivationFunctions()) {
      out.addColumn(af.getClass().getSimpleName());
      for (int i = 0; i < af.getParams().length; i++) {
        out.addColumn(af.getParams()[i]);
      }
      out.writeLine();
    }

    out.flush();
  }
View Full Code Here


      out.addColumn(neatNeuron.getNeuronID());
      out.addColumn(PersistNEATPopulation.neuronTypeToString(neatNeuron.getNeuronType()));
      out.addColumn(neatNeuron.getActivationResponse());
      out.addColumn(neatNeuron.getSplitX());
      out.addColumn(neatNeuron.getSplitY());
      out.writeLine();
    }
   
    out.addSubSection("LINKS");
    for (NEATNeuron neatNeuron : neat.getNeurons() ) {
           
View Full Code Here

    for (final ActivationFunction af : flat.getActivationFunctions()) {
      out.addColumn(af.getClass().getSimpleName());
      for (int i = 0; i < af.getParams().length; i++) {
        out.addColumn(af.getParams()[i]);
      }
      out.writeLine();
    }
    out.addSubSection("RBF");
    for (final RadialBasisFunction rbf : flat.getRBF()) {
      out.addColumn(rbf.getClass().getSimpleName());
      out.addColumn(rbf.getWidth());
View Full Code Here

      out.addColumn(rbf.getWidth());
      out.addColumn(rbf.getPeak());
      for (int i = 0; i < rbf.getCenters().length; i++) {
        out.addColumn(rbf.getCenters()[i]);
      }
      out.writeLine();
    }

    out.flush();
  }
View Full Code Here

        out.addColumn(neatInnovation.getSplitX());
        out.addColumn(neatInnovation.getSplitY());
        out.addColumn(neatInnovation.getNeuronID());
        out.addColumn(neatInnovation.getFromNeuronID());
        out.addColumn(neatInnovation.getToNeuronID());
        out.writeLine();
      }
    }
    out.addSubSection("GENOMES");
    for (Genome genome : pop.getGenomes()) {
      NEATGenome neatGenome = (NEATGenome) genome;
View Full Code Here

      out.addColumn(neatGenome.getSpeciesID());
      out.addColumn(neatGenome.getAdjustedScore());
      out.addColumn(neatGenome.getAmountToSpawn());
      out.addColumn(neatGenome.getNetworkDepth());
      out.addColumn(neatGenome.getScore());
      out.writeLine();

      for (Gene neuronGene : neatGenome.getNeurons().getGenes()) {
        NEATNeuronGene neatNeuronGene = (NEATNeuronGene) neuronGene;
        out.addColumn("n");
        out.addColumn(neatNeuronGene.getId());
View Full Code Here

        out.addColumn(neatNeuronGene.isEnabled());
        out.addColumn(neatNeuronGene.getInnovationId());
        out.addColumn(neatNeuronGene.getActivationResponse());
        out.addColumn(neatNeuronGene.getSplitX());
        out.addColumn(neatNeuronGene.getSplitY());
        out.writeLine();
      }
      for (Gene linkGene : neatGenome.getLinks().getGenes()) {
        NEATLinkGene neatLinkGene = (NEATLinkGene) linkGene;
        out.addColumn("l");
        out.addColumn(neatLinkGene.getId());
View Full Code Here

        out.addColumn(neatLinkGene.isRecurrent());
        out.addColumn(neatLinkGene.getFromNeuronID());
        out.addColumn(neatLinkGene.getToNeuronID());
        out.addColumn(neatLinkGene.getWeight());
        out.addColumn(neatLinkGene.getInnovationId());
        out.writeLine();
      }
    }
    out.addSubSection("SPECIES");
    for (Species species : pop.getSpecies()) {
      out.addColumn(species.getSpeciesID());
View Full Code Here

      out.addColumn(species.getBestScore());
      out.addColumn(species.getGensNoImprovement());
      out.addColumn(species.getNumToSpawn());
      out.addColumn(species.getSpawnsRequired());
      out.addColumn(species.getLeader().getGenomeID());
      out.writeLine();
    }
    out.flush();

  }
View Full Code Here

        out.addColumn(pair.getInput().getData(i));
      }
      for (int i = 0; i < pair.getIdeal().size(); i++) {
        out.addColumn(pair.getIdeal().getData(i));
      }
      out.writeLine();
    }

    out.flush();
  }
}
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.