|
Algorithm 1. TCRFS. |
-
Input:
-
A training sample D with a full feature set and the label set ; User-specified threshold K.
-
Output:
-
The selected feature subset S.
-
1:
-
2:
-
3:
for to n
do
-
4:
Calculate the feature relevance ;
-
5:
end for
-
6:
whiledo
-
7:
if k == 0 then
-
8:
Select the first feature with the largest ;
-
9:
;
-
10:
;
-
11:
;
-
12:
end if
-
13:
for each candidate feature do
-
14:
According to the Formula (21) and calculate the ;
-
15:
end for
-
16:
Select the feature with the largest ;
-
17:
;
-
18:
;
-
19:
;
-
20:
end while
|