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;
}