|
Algorithm 1 Algorithm of margin and sensitivity based ordering ensemble pruning (MSEP) |
-
Input:
training set , pruning set , sample (x, y), size of training set , size of pruning set , base classifier h, initial ensemble H, size of initial ensemble M, size of final pruned ensemble T, parameter
-
Output:
The final sub-ensemble S
-
1:
Initialize S = , is an empty mark list;
-
2:
Train base classifiers;
-
3:
for each
do
-
4:
Extract (, ) ∈ with replacement as with size of 30% × ;
-
5:
Train with ;
-
6:
end for
-
7:
Pruning procedures;
-
8:
for each
do
-
9:
;
-
10:
for each
do
-
11:
; ▹ refer to Equation (2)
-
12:
if
&&
then ▹ refer to Equation (10)
-
13:
; ▹ refer to Equation (11)
-
14:
; ▹ refer to Equation (10)
-
15:
end if
-
16:
end for
-
17:
; ▹ refer to Equation (10)
-
18:
Append pair to ;
-
19:
end for
-
20:
Rank in decreasing order based on ;
-
21:
return the top-T classifiers in as S;
|