Software Defect Prediction Based on Fuzzy Weighted Extreme Learning Machine with Relative Density Information
Software defect training set , where ;
Penalty factor , Hidden layer neurons .
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;
Count the number of instances in and , then record them as and , where ;
Calculate the parameter K for positive and negative class, where ,;
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 ;
For each instance in , calculate its relative density by equation (8), and then calculate its fuzzy membership value by equation (9);
Obtain based on the value of , and train a FWELM-INTRA classifier by equation (5) with the given parameters C and L.