Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score normalization error in AdaBoost and AdaBoostM2 #172

Open
pkyj95 opened this issue Oct 17, 2019 · 0 comments
Open

Score normalization error in AdaBoost and AdaBoostM2 #172

pkyj95 opened this issue Oct 17, 2019 · 0 comments

Comments

@pkyj95
Copy link

pkyj95 commented Oct 17, 2019

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

@pkyj95 pkyj95 mentioned this issue Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant