Research Article

Cross-Project Defect Prediction Based on Two-Phase Feature Importance Amplification

Algorithm 1

CFS.
(i)Input: , Feature set with features and a class;
(ii)Output: , Subset of selected features,
1, , ,.,
2compute the merit of , ,., by (3)
3put the feature with the biggest merit of into , and remove it from
4compute merit of
5put the new feature with the biggest merit of into , compute ,
6if then
7remove the new feature from
8else
9Update , remove the new feature from ,
10end if
11repeat step 5 to step 7 until or has no change by a certain number of times
12return