|
Algorithm 1: Conventional AdaBoost technique |
|
Input: training dataset , base learner , the number of training rounds . |
|
Output: the final strong classifier . |
Procedure:
-
1.
for
-
2.
compute the weight of the sample :
-
3.
end for
-
4.
for
-
5.
select a training data subset from , fit using to get a weak classifier , compute the classification error :
where denotes the predicted label of using the weak classifier , and denotes the actual label of .
-
6.
compute the weight of
-
7.
update the weight of all the instances in :
for
where is a normalization factor and is calculated as:
-
8.
end for
-
9.
end for
-
10.
assuming is the class label for an instance ; after the iterations, the final classifier is obtained as:
|