|
Algorithm 1 Group Cost-Sensitive AdaBoost Algorithm |
|
Input: Training set where is the feature vector of the sample and is the class label, costs for different groups, the set of weak learners , and the number M of weak learners in the final classifier. |
|
Output: Strong classifier for multi-resolution detectors. |
| 1: Initialization: Set of uniformly distributed weights for each group: |
| 2: . |
| 3: for
do
|
| 4: for
do
|
| 5: Compute parameter values as in Equations (16), (17) with ; |
| 6: Obtain the value of by solving Equation (15); |
| 7: Calculate the loss of the weak learner as in Equation (18). |
| 8: end for
|
| 9: Select the best weak learner with the minimum loss as in Equation (19); |
| 10: Update the weights according to Equation (20). |
| 11: end for
|
| 12: return. |