Code bad smell detection method based on BP neural network
A BP neural network and detection method technology, applied in the field of computer software, can solve the problem of not conforming to the distribution of bad smells in the code, and achieve the effect of improving the F1 value and improving the accuracy.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0022] specific implementation plan
[0023] For the source code of a certain software project, the current mainstream is to use code smell automatic detection tools to detect bad smell entities in the program. Each tool detects different types of code smell, which lacks objectivity. The present invention detects 15 Java open source projects through the code bad smell detection tool to obtain code bad smell examples, and merges the two sample sets of feature attachment and long method, so that the code bad smell data set contains different bad smells Type and measure characteristic value. By extracting the software measurement features that meet the preset input from the data set, as the input of the BP neural network, the expected output of the network is the label of the sample. After multiple iterations of training, the final trained neural network model can be obtained, and used The public code bad smell dataset proposed by Fontana et al. is used as a test set to test the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


