Treffer: 基于深度学习的软件重构预测评估方法.
Weitere Informationen
Aiming at the lack of research on the performance of deep learning models in predicting software refactoring in the current field. a deep learning-based software refactoring prediction evaluation method was proposed to assess the refactoring predictive performance of these models. Firstly, refactoring and non-refactoring labeled instances were collected from 303 Java projects using static analysis tools, and seven datasets comprising source code metrics were constructed for seven refactoring operations: extracting class, extracting subclass, extracting super class, extracting interface, moving class, renaming class. and moving and renaming class. Secondly, convolutional neural network (CNN), long short-term memory (LSTM) network. gated recurrent unit (GRU) model, multilayer perceptron (MLP), and autoencoder (AE) were trained and tested on the datasets. Finally, each model was evaluated based on accuracy, precision, recall, and F1-measure. The results show that the average accuracy, precision, recall, and F1-measure of the five deep learning models for predicting refactoring are all above 93%, with the highest accuracy in predicting the extract subclass refactoring, and the CNN model has a higher average accuracy compared to other models. The CNN model is efficient for software refactoring prediction evaluation, which provides reference for future utilization of deep learning models in assisting with completing refactoring recommendation tasks. [ABSTRACT FROM AUTHOR]
为了解决当前软件重构领域深度学习模型预测性能研究的不足, 提出了一种基于深度学习 的软件重构预测评估方法, 以评估深度学习模型的重构预测性能。首先, 采用静态分析工具从 303 个 Java 项目中收集重构和非重构标签实例, 针对提取类、提取子类、提取超类、提取接口、移动类、 重命名类以及移动和重命名类7种重构操作构建了 7 个由源代码度量组成的数据集;其次, 搭建卷 积神经网络模型、长短期记忆网络模型、门控循环单元模型、多层感知机、自编码器在数据集上进行 训练和测试; 最后, 根据每个模型的准确率、查准率、查全率和 F1 值对模型进行评估。结果表明, 5 种深度学习模型预测重构的准确率、查准率、查全率和 F1 值的平均值均在 93% 以上, 预测提取子 类的准确率最高, 卷积神经网络模型预测重构的平均准确率高于其他模型。卷积神经网络模型在 软件重构预测评估方面效果较好, 为未来使用深度学习模型辅助完成重构推荐任务提供了参考。 [ABSTRACT FROM AUTHOR]
Copyright of Journal of Hebei University of Science & Technology is the property of Hebei University of Science & Technology, Journal of Hebei University of Science & Technology and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)