Yang, Kang and Yu, Huiqun and Fan, Guisheng and Yang, Xingguang and Chen, Liqiong (2021) Code Prediction Based on Graph Embedding Model. In: Collaborative Computing: Networking, Applications and Worksharing. 16th EAI International Conference, CollaborateCom 2020, Shanghai, China, October 16–18, 2020, Proceedings, Part II.
74673.pdf
Download (1MB)
Abstract
Code prediction aims to accelerate the efficiency of programmer development. However, its prediction accuracy is still a great challenge. To facilitate the interpretability of the code prediction model and improve the accuracy of prediction. In this paper, the source code’s Abstract Syntax Tree (AST) is used to extract relevant structural paths between nodes and convert them into training graphs. The embedded model can convert the feature of the node sequence in the training graph into a vector that is convenient for quantization. We calculate the similarity between the candidate value and the parent node vector of the predicted path to obtain the predicted value. Experiments show that by using prediction data to increase the weight of related nodes in the graph, the model can extract more useful structural features, especially in Value prediction tasks. Adjusting the parameters embedded in the graph can improve the accuracy of the model.
| Item Type: | Conference or Workshop Item (UNSPECIFIED) |
|---|---|
| Uncontrolled Keywords: | Big code, Graph embedding, Code prediction |
| Date Deposited: | 04 Mar 2026 19:09 |
| Last Modified: | 20 Nov 2026 11:19 |
| URI: | https://eprints.eai.eu/id/eprint/55329 |
