Cloning consistency change prediction method and system based on hierarchical neural network
A neural network and prediction method technology, which is applied in the field of clonal consistency change prediction based on hierarchical neural network, can solve the problem that the code syntax and semantic features cannot be accurately and completely preserved, and achieve the effect of complete semantic features.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] Such as figure 1 As shown, a method for predicting changes in clonal consistency based on hierarchical neural networks includes the following steps:
[0036] S1: The preprocessing module preprocesses the code fragment data, converts the code fragment into an abstract syntax tree form, and uses word2vec to encode the nodes on the syntax tree to obtain the code fragment;
[0037] S2: The code fragment feature extraction neural network module establishes a code fragment feature extraction neural network to extract the feature information of the code fragment;
[0038] S3: The clone group feature extraction neural network module establishes the clone group feature extraction neural network, fuses the feature information of the code fragments, and extracts the feature information of the clone group;
[0039] S4: The clone evolution feature extraction neural network module establishes the clone evolution feature extraction neural network, fuses the feature information of the...
Embodiment 2
[0047] Such as figure 2 As shown, a clone consistency change prediction system based on hierarchical neural network, including a preprocessing module, a code fragment feature extraction neural network module, a clone group feature extraction neural network module, a clone evolution feature extraction neural network module and an evaluation module;
[0048]The output end of the preprocessing module is electrically connected to the input end of the code fragment feature extraction neural network module, the output end of the code fragment feature extraction neural network module is connected to the input end of the clone group feature extraction neural network module Electrically connected, the output end of the clone group feature extraction neural network module is electrically connected to the input end of the clone evolution feature extraction neural network module, the output end of the clone evolution feature extraction neural network module is connected to the evaluation ...
Embodiment 3
[0054] Such as Figure 3 ~ Figure 6 as shown, image 3 The framework of clonal consistency change prediction process based on hierarchical neural network is shown, mainly including clonal family collection, code fragment coding, clonal group coding, clonal evolution coding, CHANN model, model training and prediction. Each process is described in detail below.
[0055] Figure 4 One of the examples showing the change of clone consistency from old to new version. The two pieces of cloning code have undergone consistent changes during the process of cloning evolution, namely deletion operation (black lined part) and insertion operation (black bold code part).
[0056] Figure 5 It shows the encoder-ASTNN model framework of this invention for the single code level in the process of cloning evolution. The input of the ASTNN network model is the word2vec code converted into the abstract syntax tree node in the preprocessing stage, and the output is the feature information of a ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com