Examples of parseDoubleArray()


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

        states = EncogFileSection.parseInt(params, HiddenMarkovModel.TAG_STATES);
       
        if( params.containsKey(HiddenMarkovModel.TAG_ITEMS) ) {
          items = EncogFileSection.parseIntArray(params, HiddenMarkovModel.TAG_ITEMS);
        }
        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);
View Full Code Here

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

      } 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());
          distributions.add(dist);
        } else if( "DiscreteDistribution".equals(t) ) {
          Matrix prob = section.parseMatrix(params, HiddenMarkovModel.TAG_PROBABILITIES);
View Full Code Here

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

            params, PersistSVM.PARAM_PROBABILITY);
        result.getParams().shrinking = EncogFileSection.parseInt(
            params, PersistSVM.PARAM_SHRINKING);
        result.getParams().svm_type = EncogFileSection.parseInt(params,
            PersistSVM.PARAM_SVM_TYPE);
        result.getParams().weight = section.parseDoubleArray(
            params, PersistSVM.PARAM_WEIGHT);
        result.getParams().weight_label = EncogFileSection
            .parseIntArray(params, PersistSVM.PARAM_WEIGHT_LABEL);
      } else if (section.getSectionName().equals("SVM")
          && section.getSubSectionName().equals("SVM-MODEL")) {
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.