The invention provides a
software defect predicting method based on a JCUDASA_BP
algorithm. The
software defect predicting method based on JCUDASA_BP
algorithm aims at solving the problems that an existing method based on an error
back propagation algorithm is low in defect prediction accuracy and long in consumed time. The
software defect predicting method based on the JCUDASA_BP
algorithm comprises the first step of building a BP network, initializing weights of all
layers in the BP network, determining the number of network input and output nodes, determining hidden nodes, determining the initialized weights and finishing initialization of the BP
network structure, wherein the network comprises an input layer, a
hidden layer and an output layer; the second step of counting the number of input samples according to the BP
network structure built in the first step, achieving computation of layer output in a GPU through a starting thread through the JCUDA technology according to the input sample conditions, and computing an error value according to the output value and an expected error; the third step of computing whether the current error is received or not through a
simulated annealing algorithm after the error between the output value and the expected value is counted, ending the process if the current error is received, otherwise continuing to adjust the network weights, and each sample is processed in a slitting mode.