Examples of addSubSection()


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

  @Override
  public final void save(final OutputStream os, final Object obj) {
    final EncogWriteHelper out = new EncogWriteHelper(os);
    final TrainingContinuation cont = (TrainingContinuation) obj;
    out.addSection("CONT");
    out.addSubSection("PARAMS");
    out.writeProperty("type", cont.getTrainingType());
    for (final String key : cont.getContents().keySet()) {
      final double[] list = (double[]) cont.get(key);
      out.writeProperty(key, list);
    }
View Full Code Here

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

  public final void save(final OutputStream os, final Object obj) {
    final EncogWriteHelper out = new EncogWriteHelper(os);
    final BasicNetwork net = (BasicNetwork) obj;
    final FlatNetwork flat = net.getStructure().getFlat();
    out.addSection("BASIC");
    out.addSubSection("PARAMS");
    out.addProperties(net.getProperties());
    out.addSubSection("NETWORK");

    out.writeProperty(BasicNetwork.TAG_BEGIN_TRAINING,
        flat.getBeginTraining());
View Full Code Here

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

    final BasicNetwork net = (BasicNetwork) obj;
    final FlatNetwork flat = net.getStructure().getFlat();
    out.addSection("BASIC");
    out.addSubSection("PARAMS");
    out.addProperties(net.getProperties());
    out.addSubSection("NETWORK");

    out.writeProperty(BasicNetwork.TAG_BEGIN_TRAINING,
        flat.getBeginTraining());
    out.writeProperty(BasicNetwork.TAG_CONNECTION_LIMIT,
        flat.getConnectionLimit());
View Full Code Here

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

    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++) {
        out.addColumn(af.getParams()[i]);
      }
View Full Code Here

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

  @Override
  public final void save(final OutputStream os, final Object obj) {
    final EncogWriteHelper out = new EncogWriteHelper(os);
    final CPN cpn = (CPN) obj;
    out.addSection("CPN");
    out.addSubSection("PARAMS");
    out.addProperties(cpn.getProperties());
    out.addSubSection("NETWORK");

    out.writeProperty(PersistConst.INPUT_COUNT, cpn.getInputCount());
    out.writeProperty(PersistConst.INSTAR, cpn.getInstarCount());
View Full Code Here

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

    final EncogWriteHelper out = new EncogWriteHelper(os);
    final CPN cpn = (CPN) obj;
    out.addSection("CPN");
    out.addSubSection("PARAMS");
    out.addProperties(cpn.getProperties());
    out.addSubSection("NETWORK");

    out.writeProperty(PersistConst.INPUT_COUNT, cpn.getInputCount());
    out.writeProperty(PersistConst.INSTAR, cpn.getInstarCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, cpn.getOutputCount());
    out.writeProperty(PersistCPN.PROPERTY_inputToInstar,
View Full Code Here

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

  @Override
  public void save(OutputStream os, Object obj) {
    EncogWriteHelper out = new EncogWriteHelper(os);
    NEATNetwork neat = (NEATNetwork)obj;
    out.addSection("NEAT");
    out.addSubSection("PARAMS");
    out.addProperties(neat.getProperties());
    out.addSubSection("NETWORK");
   
    out.writeProperty(PersistConst.INPUT_COUNT, neat.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, neat.getOutputCount());
View Full Code Here

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

    EncogWriteHelper out = new EncogWriteHelper(os);
    NEATNetwork neat = (NEATNetwork)obj;
    out.addSection("NEAT");
    out.addSubSection("PARAMS");
    out.addProperties(neat.getProperties());
    out.addSubSection("NETWORK");
   
    out.writeProperty(PersistConst.INPUT_COUNT, neat.getInputCount());
    out.writeProperty(PersistConst.OUTPUT_COUNT, neat.getOutputCount());
    out.writeProperty(PersistConst.ACTIVATION_FUNCTION, neat.getActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, neat.getOutputActivationFunction());
View Full Code Here

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

    out.writeProperty(PersistConst.ACTIVATION_FUNCTION, neat.getActivationFunction());
    out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, neat.getOutputActivationFunction());
    out.writeProperty(PersistConst.DEPTH, neat.getNetworkDepth());
    out.writeProperty(PersistConst.SNAPSHOT, neat.isSnapshot());
   
    out.addSubSection("NEURONS");
    for (NEATNeuron neatNeuron : neat.getNeurons() ) {
      out.addColumn(neatNeuron.getNeuronID());
      out.addColumn(PersistNEATPopulation.neuronTypeToString(neatNeuron.getNeuronType()));
      out.addColumn(neatNeuron.getActivationResponse());
      out.addColumn(neatNeuron.getSplitX());
View Full Code Here

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

      out.addColumn(neatNeuron.getSplitX());
      out.addColumn(neatNeuron.getSplitY());
      out.writeLine();
    }
   
    out.addSubSection("LINKS");
    for (NEATNeuron neatNeuron : neat.getNeurons() ) {
           
      for(NEATLink link: neatNeuron.getOutputboundLinks() ) {
        writeLink(out,link);
      }     
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.