Jack-Cherish/Machine-Learning

Adaboost更新权值分布时,计算错误

1214083397 opened this issue · 2 comments

D = np.multiply(D, np.exp(expon))
D = D / D.sum()
应该改为:
Z = np.multiply(W, np.exp(expon))
W = np.multiply(W, np.exp(expon)) / Z..sum()