Package org.encog.persist

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


    out.writeProperty(BasicNetwork.TAG_LAYER_INDEX, flat.getLayerIndex());
    out.writeProperty(PersistConst.OUTPUT, flat.getLayerOutput());
    out.writeProperty(PersistConst.OUTPUT_COUNT, flat.getOutputCount());
    out.writeProperty(BasicNetwork.TAG_WEIGHT_INDEX, flat.getWeightIndex());
    out.writeProperty(PersistConst.WEIGHTS, flat.getWeights());
    out.writeProperty(BasicNetwork.TAG_BIAS_ACTIVATION,
        flat.getBiasActivation());
    out.addSubSection("ACTIVATION");
    for (final ActivationFunction af : flat.getActivationFunctions()) {
      out.addColumn(af.getClass().getSimpleName());
      for (int i = 0; i < af.getParams().length; i++) {
View Full Code Here


  public void save(OutputStream os, Object obj) {
    EncogWriteHelper out = new EncogWriteHelper(os);
    NEATPopulation pop = (NEATPopulation) obj;
    out.addSection("NEAT-POPULATION");
    out.addSubSection("CONFIG");
    out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
View Full Code Here

    EncogWriteHelper out = new EncogWriteHelper(os);
    NEATPopulation pop = (NEATPopulation) obj;
    out.addSection("NEAT-POPULATION");
    out.addSubSection("CONFIG");
    out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
View Full Code Here

    NEATPopulation pop = (NEATPopulation) obj;
    out.addSection("NEAT-POPULATION");
    out.addSubSection("CONFIG");
    out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
View Full Code Here

    out.addSection("NEAT-POPULATION");
    out.addSubSection("CONFIG");
    out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
        pop.getOldAgeThreshold());
View Full Code Here

    out.addSubSection("CONFIG");
    out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
        pop.getOldAgeThreshold());
    out.writeProperty(NEATPopulation.PROPERTY_POPULATION_SIZE,
View Full Code Here

    out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
        pop.getOldAgeThreshold());
    out.writeProperty(NEATPopulation.PROPERTY_POPULATION_SIZE,
        pop.getPopulationSize());
View Full Code Here

    out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
    out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
        pop.getOldAgeThreshold());
    out.writeProperty(NEATPopulation.PROPERTY_POPULATION_SIZE,
        pop.getPopulationSize());
    out.writeProperty(NEATPopulation.PROPERTY_SURVIVAL_RATE,
        pop.getSurvivalRate());
View Full Code Here

    out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,
        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
        pop.getOldAgeThreshold());
    out.writeProperty(NEATPopulation.PROPERTY_POPULATION_SIZE,
        pop.getPopulationSize());
    out.writeProperty(NEATPopulation.PROPERTY_SURVIVAL_RATE,
        pop.getSurvivalRate());
    out.writeProperty(NEATPopulation.PROPERTY_YOUNG_AGE_THRESHOLD,
        pop.getYoungBonusAgeThreshold());
View Full Code Here

        pop.getOldAgePenalty());
    out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_THRESHOLD,
        pop.getOldAgeThreshold());
    out.writeProperty(NEATPopulation.PROPERTY_POPULATION_SIZE,
        pop.getPopulationSize());
    out.writeProperty(NEATPopulation.PROPERTY_SURVIVAL_RATE,
        pop.getSurvivalRate());
    out.writeProperty(NEATPopulation.PROPERTY_YOUNG_AGE_THRESHOLD,
        pop.getYoungBonusAgeThreshold());
    out.writeProperty(NEATPopulation.PROPERTY_YOUNG_AGE_BONUS,
        pop.getYoungScoreBonus());
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.