Package org.encog.persist

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


        }
        pi = section.parseDoubleArray(params,  HiddenMarkovModel.TAG_PI);
        transitionProbability = section.parseMatrix(params, HiddenMarkovModel.TAG_TRANSITION);
      } else if (section.getSectionName().equals("HMM")
          && section.getSubSectionName().startsWith("DISTRIBUTION-")) {
        final Map<String, String> params = section.parseParams();
        String t = params.get(HiddenMarkovModel.TAG_DIST_TYPE);
        if( "ContinousDistribution".equals(t) ) {
          double[] mean = section.parseDoubleArray(params, HiddenMarkovModel.TAG_MEAN);
          Matrix cova = section.parseMatrix(params, HiddenMarkovModel.TAG_COVARIANCE);
          ContinousDistribution dist = new ContinousDistribution(mean,cova.getData());
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

        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("BasicUniverse")
          && section.getSubSectionName().equals("PARAMS")) {
        objParams = section.parseParams();       
      }
      if (section.getSectionName().equals("BasicUniverse")
          && section.getSubSectionName().equals("UNIVERSE-PARAM")) {
        final Map<String, String> params = section.parseParams();
        cols = EncogFileSection.parseInt(params,PersistConst.COLS);
View Full Code Here

          && section.getSubSectionName().equals("PARAMS")) {
        objParams = section.parseParams();       
      }
      if (section.getSectionName().equals("BasicUniverse")
          && section.getSubSectionName().equals("UNIVERSE-PARAM")) {
        final Map<String, String> params = section.parseParams();
        cols = EncogFileSection.parseInt(params,PersistConst.COLS);
        rows = EncogFileSection.parseInt(params,PersistConst.ROWS);       
      } else if (section.getSectionName().equals("BasicUniverse")
          && section.getSubSectionName().equals("UNIVERSE-CELLS")) {
        final Map<String, String> params = section.parseParams();
View Full Code Here

        final Map<String, String> params = section.parseParams();
        cols = EncogFileSection.parseInt(params,PersistConst.COLS);
        rows = EncogFileSection.parseInt(params,PersistConst.ROWS);       
      } else if (section.getSectionName().equals("BasicUniverse")
          && section.getSubSectionName().equals("UNIVERSE-CELLS")) {
        final Map<String, String> params = section.parseParams();
        min = EncogFileSection.parseDouble(params,PersistConst.MIN);
        max = EncogFileSection.parseDouble(params,PersistConst.MAX);
        elementCount = EncogFileSection.parseInt(params,BasicUniverse.ELEMENT_COUNT);
        size = EncogFileSection.parseInt(params,PersistConst.SIZE);
       
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.