See the premise of this article: have seen the PRML in the AdaBoost algorithm flow
The following must be remembered: the error function used by AdaBoost is exponential error
The main purpose of this article is to understand why the weights of sample sampling change.
Conclusion: The sampling weight of sample n is the exponential error of fm-1 on Sample n when training the first m base classifier ym.
When the YM has the Nth sample aligned, the weight remains the same, or the weight increases exp{αm} (>1) times
(1)
(2)
(3)
(1) The error function representing the FM of the classifier is the exponential error function
(2) The classifier FM is the weighted sum of a series of base functions (YL, that is, the base classifier), Αl is the weight of the base classifier YL, L=1...M
(3) indicates that the classifier FM is two classified
AdaBoost is to choose the appropriate αl and YL to make the error e minimum, l=1...m
Finding the global optimization is a very troublesome thing, so we decided to find the local optimum and adopted the forward step algorithm.
Forward Step algorithm
Suppose the former m-1 a base classifier y1 (x) ... ym-1 (x) has been determined, and the corresponding weights α1 ... Αm-1 has also determined that at this point only the right αm and YM are needed to make e the smallest.
So e can be converted to:
(4)
According to the exponential error function, we can know that in fact,the error of Fm-1 on sample N, that is, when the YM is trained, the sampling weight of sample n is the error of fm-1 on the sample N.
(4) The add-on on the right is the error of the FM on the sample n, so there is the following recursive formula
(5)
(6)
Equation 6 is very easy to get, will (6) into (5), you can get (7)
(7)
and N Independent, that is, the sample (data) Independent, so the sample does not affect the sampling, can be removed.
When the YM will be the nth sample to the right, then the weights remain unchanged, or the weight increase expαm (>1) times
The following is an explanation of the three main parts of the algorithm:
1. When considering the change of the YM, minimizing the exponential error loss of the classifier FM is equivalent to minimizing the weighted 0-1 loss of the YM of the first m base classifier.
2, when only considering the change of αm, minimizing the exponential error loss of the classifier FM, the value of the weight value of the base classifier αm (relation to the weighted error rate)
3. Weighted Error Rate
A further conversion of (4) is obtained:
(8)
Minimization of E is equivalent to minimizing (9) if only the change of the YM is considered.
(9)
(9) indicates the weighted error and
If only αm changes are considered, minimizing e gets
(10)
which
Is the weighted error rate
Supplemental AdaBoost Algorithm Framework
The practical significance of the weights for sampling adaboost--samples