Examples of parseDoubleArray()


Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

            .get(PersistConst.KERNEL));
        outmodel = PersistBasicPNN.stringToOutputMode(params
            .get(PersistBasicPNN.PROPERTY_outputMode));
        error = EncogFileSection
            .parseDouble(params, PersistConst.ERROR);
        sigma = section.parseDoubleArray(params,
            PersistConst.SIGMA);
      }
      if (section.getSectionName().equals("PNN")
          && section.getSubSectionName().equals("SAMPLES")) {
        for (final String line : section.getLines()) {
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

            BasicNetwork.TAG_LAYER_FEED_COUNTS));
        flat.setLayerContextCount(EncogFileSection.parseIntArray(
            params, BasicNetwork.TAG_LAYER_CONTEXT_COUNT));
        flat.setLayerIndex(EncogFileSection.parseIntArray(params,
            BasicNetwork.TAG_LAYER_INDEX));
        flat.setLayerOutput(section.parseDoubleArray(params,
            PersistConst.OUTPUT));
        flat.setLayerSums(new double[flat.getLayerOutput().length]);
        flat.setOutputCount(EncogFileSection.parseInt(params,
            PersistConst.OUTPUT_COUNT));
        flat.setWeightIndex(EncogFileSection.parseIntArray(params,
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

        flat.setLayerSums(new double[flat.getLayerOutput().length]);
        flat.setOutputCount(EncogFileSection.parseInt(params,
            PersistConst.OUTPUT_COUNT));
        flat.setWeightIndex(EncogFileSection.parseIntArray(params,
            BasicNetwork.TAG_WEIGHT_INDEX));
        flat.setWeights(section.parseDoubleArray(params,
            PersistConst.WEIGHTS));
        flat.setBiasActivation(section.parseDoubleArray(
            params, BasicNetwork.TAG_BIAS_ACTIVATION));
      } else if (section.getSectionName().equals("BASIC")
          && section.getSubSectionName().equals("ACTIVATION")) {
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

            PersistConst.OUTPUT_COUNT));
        flat.setWeightIndex(EncogFileSection.parseIntArray(params,
            BasicNetwork.TAG_WEIGHT_INDEX));
        flat.setWeights(section.parseDoubleArray(params,
            PersistConst.WEIGHTS));
        flat.setBiasActivation(section.parseDoubleArray(
            params, BasicNetwork.TAG_BIAS_ACTIVATION));
      } else if (section.getSectionName().equals("BASIC")
          && section.getSubSectionName().equals("ACTIVATION")) {
        int index = 0;
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("HOPFIELD")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();
        result.setWeights(section.parseDoubleArray(params,
            PersistConst.WEIGHTS));
        result.setCurrentState(section.parseDoubleArray(params,
            PersistConst.OUTPUT));
        result.setNeuronCount(EncogFileSection.parseInt(params,
            PersistConst.NEURON_COUNT));
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

      if (section.getSectionName().equals("HOPFIELD")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();
        result.setWeights(section.parseDoubleArray(params,
            PersistConst.WEIGHTS));
        result.setCurrentState(section.parseDoubleArray(params,
            PersistConst.OUTPUT));
        result.setNeuronCount(EncogFileSection.parseInt(params,
            PersistConst.NEURON_COUNT));
      }
    }
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

            BasicNetwork.TAG_LAYER_FEED_COUNTS));
        flat.setLayerContextCount(EncogFileSection.parseIntArray(
            params, BasicNetwork.TAG_LAYER_CONTEXT_COUNT));
        flat.setLayerIndex(EncogFileSection.parseIntArray(params,
            BasicNetwork.TAG_LAYER_INDEX));
        flat.setLayerOutput(section.parseDoubleArray(params,
            PersistConst.OUTPUT));
        flat.setLayerSums(new double[flat.getLayerOutput().length]);
        flat.setOutputCount(EncogFileSection.parseInt(params,
            PersistConst.OUTPUT_COUNT));
        flat.setWeightIndex(EncogFileSection.parseIntArray(params,
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

        flat.setLayerSums(new double[flat.getLayerOutput().length]);
        flat.setOutputCount(EncogFileSection.parseInt(params,
            PersistConst.OUTPUT_COUNT));
        flat.setWeightIndex(EncogFileSection.parseIntArray(params,
            BasicNetwork.TAG_WEIGHT_INDEX));
        flat.setWeights(section.parseDoubleArray(params,
            PersistConst.WEIGHTS));
        flat.setBiasActivation(section.parseDoubleArray(
            params, BasicNetwork.TAG_BIAS_ACTIVATION));
      } else if (section.getSectionName().equals("RBF-NETWORK")
          && section.getSubSectionName().equals("ACTIVATION")) {
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

            PersistConst.OUTPUT_COUNT));
        flat.setWeightIndex(EncogFileSection.parseIntArray(params,
            BasicNetwork.TAG_WEIGHT_INDEX));
        flat.setWeights(section.parseDoubleArray(params,
            PersistConst.WEIGHTS));
        flat.setBiasActivation(section.parseDoubleArray(
            params, BasicNetwork.TAG_BIAS_ACTIVATION));
      } else if (section.getSectionName().equals("RBF-NETWORK")
          && section.getSubSectionName().equals("ACTIVATION")) {
        int index = 0;
View Full Code Here

Examples of org.encog.persist.EncogFileSection.parseDoubleArray()

        final Map<String, String> params = section.parseParams();
        for (final String key : params.keySet()) {
          if (key.equalsIgnoreCase("type")) {
            result.setTrainingType(params.get(key));
          } else {
            final double[] list = section
                .parseDoubleArray(params, key);
            result.put(key, list);
          }
        }
      }
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.