Package moa.core

Examples of moa.core.DoubleVector


        double Bm = em / (1.0 - em);
        return Math.log(1.0 / Bm);
    }

    public double[] getVotesForInstance(Instance inst) {
      DoubleVector combinedVote = new DoubleVector();
      try {
      lock.acquire();
          for(ClassifierInstance c : ensemble){
            double memberWeight = getEnsembleMemberWeight(c);
            if (memberWeight > 0.0) {
                  DoubleVector vote = new DoubleVector(c.getClassifier().getVotesForInstance(inst));
                  if (vote.sumOfValues() > 0.0) {
                      vote.normalize();
                      vote.scaleValues(memberWeight);
                      combinedVote.addValues(vote);
                  }
              } else {
                  break;
              }
View Full Code Here

TOP

Related Classes of moa.core.DoubleVector

Copyright © 2018 www.massapicom. 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.