Package moa.core

Examples of moa.core.DoubleVector.normalize()


          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
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.