Explore Library
Code QuizIntermediate

AdaBoost Alpha Computation

Spotting an inverted ratio in the estimator weight formula.

Codepython
import numpy as np

def compute_alpha(err):
    # weight (alpha) of a weak learner given its weighted error
    return 0.5 * np.log(err / (1 - err))

What is the bug in this alpha computation?