MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.
sum is not the sum of the numWeakClassifiersToUse scores in:
for (int round = 0; round < numWeakClassifiersToUse; round++) {
bestIndex = weakClassifiers[round].classify(inst).getLabeling().getBestIndex();
scores[bestIndex] += alphas[round];
sum += scores[bestIndex];
}
Sum should be:
sum = 0;
for (int i==; i < scores.length; i++)
sum +=scores[i];
sum is not the sum of the numWeakClassifiersToUse scores in: for (int round = 0; round < numWeakClassifiersToUse; round++) { bestIndex = weakClassifiers[round].classify(inst).getLabeling().getBestIndex(); scores[bestIndex] += alphas[round]; sum += scores[bestIndex]; }
Sum should be:
sum = 0; for (int i==; i < scores.length; i++) sum +=scores[i];