Research Article

Software Defect Prediction Based on Fuzzy Weighted Extreme Learning Machine with Relative Density Information

Algorithm 1

FWELM-INTRA.
Input:
 Software defect training set , where ;
 Penalty factor , Hidden layer neurons .
Output:
 FWELM-INTRA Classifier.
(1) Divide into two sets, only contains positive instances, and only contains negative instances. Here, SDP aims to discover the defective modules, so this paper uses positive instances to represent software defective instance, and negative instances to represent non-defective instances;
(2) Count the number of instances in and , then record them as and , where ;
(3) Calculate the parameter K for positive and negative class, where , ;
(4) For each instance in , calculate its instances to the th nearest neighbors in and record it as , as well for each instances in , calculate its distance to the th nearest neighbors in and record it as ;
(5) For each instance in , calculate its relative density by equation (8), and then calculate its fuzzy membership value by equation (9);
(6) Obtain based on the value of , and train a FWELM-INTRA classifier by equation (5) with the given parameters C and L.