|
Algorithm 1 Competitive particle swarm optimization. |
-
1:
input:; ▹ The number of particles for each group , the maximum number of FFCs v
-
2:
output:S; ▹ the final feature subset S
-
3:
initialization; ▹ initialize particles using Algorithm 2
-
4:
generate subsets based on ; ▹ use locations of particles
-
5:
evaluate subsets ; ▹ evaluate subsets using fitness function
-
6:
; ▹ set u to the number of whole particles
-
7:
while
do
-
8:
update
C using Equations (2) and (3); ▹ update locations of particles
-
9:
generate subsets based on ;
-
10:
evaluate subsets ;
-
11:
;
-
12:
competition; ▹ use Algorithm 3
-
13:
the best feature subset so far;
-
14:
end while
|