|
Algorithm 2 Improved splicing method |
-
1:
Input: An individual A, i.e., , , Sample , , threshold ; Maximal size of the subset of genes ;
-
2:
The individual A is divided into active set and inactive set ;
-
3:
if
then
-
4:
Calculate the score of each gene in active set in terms of backward sacrifice.
-
5:
Delete genes of the lowest score in active set to obtain a new active set ; Then deleted genes are added into inactive set to obtain a new inactive set .
-
6:
, , where , ;
-
7:
else
-
8:
, , where , ;
-
9:
end if
-
10:
repeat
-
11:
Calculate Loss function ;
-
12:
Calculate the score of each gene in active set in terms of backward sacrifice.
-
13:
Calculate the score of each gene in inactive set in terms of forward sacrifice.
-
14:
for
do
-
15:
, ;
-
16:
, , , ;
-
17:
Calculate Loss function ;
-
18:
if
then
-
19:
, , , , ;
-
20:
end if
-
21:
end for
-
22:
until
-
23:
Merge active set with inactive set to generate a new individual A.
-
24:
Output: A new individual A.
|