Package org.encog.persist

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


    EncogFileSection section;

    while ((section = in.readNextSection()) != null) {
      if (section.getSectionName().equals("BAM")
          && section.getSubSectionName().equals("PARAMS")) {
        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("BAM")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();
View Full Code Here


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

        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("BAM")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();

        result.setF1Count(EncogFileSection.parseInt(params,
            PersistConst.PROPERTY_F1_COUNT));
        result.setF2Count(EncogFileSection.parseInt(params,
            PersistConst.PROPERTY_F2_COUNT));
View Full Code Here

    EncogFileSection section;

    while ((section = in.readNextSection()) != null) {
      if (section.getSectionName().equals("ART1")
          && section.getSubSectionName().equals("PARAMS")) {
        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("ART1")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();
View Full Code Here

        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("ART1")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();

        result.setA1(EncogFileSection.parseDouble(params,
            ART.PROPERTY_A1));
        result.setB1(EncogFileSection.parseDouble(params,
            ART.PROPERTY_B1));
View Full Code Here

    EncogFileSection section;

    while ((section = in.readNextSection()) != null) {
      if (section.getSectionName().equals("RBF-NETWORK")
          && section.getSubSectionName().equals("PARAMS")) {
        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("RBF-NETWORK")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();
View Full Code Here

        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("RBF-NETWORK")
          && section.getSubSectionName().equals("NETWORK")) {
        final Map<String, String> params = section.parseParams();

        flat.setBeginTraining(EncogFileSection.parseInt(params,
            BasicNetwork.TAG_BEGIN_TRAINING));
        flat.setConnectionLimit(EncogFileSection.parseDouble(params,
            BasicNetwork.TAG_CONNECTION_LIMIT));
View Full Code Here

            lastGenome.getLinks().add(linkGene);
          }
        }
      } else if (section.getSectionName().equals("NEAT-POPULATION")
          && section.getSubSectionName().equals("CONFIG")) {
        Map<String, String> params = section.parseParams();
       
        result.setNeatActivationFunction(EncogFileSection.parseActivationFunction(params,NEATPopulation.PROPERTY_NEAT_ACTIVATION));
        result.setOutputActivationFunction(EncogFileSection.parseActivationFunction(params,NEATPopulation.PROPERTY_OUTPUT_ACTIVATION));
        result.setSnapshot(EncogFileSection.parseBoolean(params, PersistConst.SNAPSHOT));
        result.setInputCount(EncogFileSection.parseInt(params,
View Full Code Here

        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("SVM")
          && section.getSubSectionName().equals("SVM-PARAM")) {
        final Map<String, String> params = section.parseParams();
        result.setInputCount(EncogFileSection.parseInt(params,
            PersistConst.INPUT_COUNT));
        result.getParams().C = EncogFileSection.parseDouble(params,
            PersistSVM.PARAM_C);
        result.getParams().cache_size = EncogFileSection.parseDouble(
View Full Code Here

    EncogFileSection section;

    while ((section = in.readNextSection()) != null) {
      if (section.getSectionName().equals("SVM")
          && section.getSubSectionName().equals("PARAMS")) {
        final Map<String, String> params = section.parseParams();
        result.getProperties().putAll(params);
      }
      if (section.getSectionName().equals("SVM")
          && section.getSubSectionName().equals("SVM-PARAM")) {
        final Map<String, String> params = section.parseParams();
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.