arrow
返回

The Effectiveness of Supervised Machine Learning Algorithms in Predicting Software Refactoring

delete2022-04-01
delete40
delete
OA
AI
M
Maurício Aniche *
E
Erick Galani Maziero
R
Rafael S. Durelli
V
Vinícius H. S. Durelli
DOI:10.1109/TSE.2020.3021736delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Refactoring is the process of changing the internal structure of software to improve its quality without modifying its external behavior. Empirical studies have repeatedly shown that refactoring has a positive impact on the understandability and maintainability of software systems. However, before carrying out refactoring activities, developers need to identify refactoring opportunities. Currently, refactoring opportunity identification heavily relies on developers' expertise and intuition. In this paper, we investigate the effectiveness of machine learning algorithms in predicting software refactorings. More specifically, we train six different machine learning algorithms (i.e., Logistic Regression, Naive Bayes, Support Vector Machine, Decision Trees, Random Forest, and Neural Network) with a dataset comprising over two million refactorings from 11,149 real-world projects from the Apache, F-Droid, and GitHub ecosystems. The resulting models predict 20 different refactorings at class, method, and variable-levels with an accuracy often higher than 90 percent. Our results show that (i) Random Forests are the best models for predicting software refactoring, (ii) process and ownership metrics seem to play a crucial role in the creation of better models, and (iii) models generalize well in different contexts.
Keyword:
Biological system modeling
Measurement
Tools
Software
Predictive models
Context modeling
Prediction algorithms
Software engineering
software refactoring
machine learning for software engineering
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

D
Delft University of Technology
学者数:
2.6W
论文数: 2.5W
被引数: 3.8W
Universidade Federal de Lavras 封面图
Universidade Federal de Lavras
学者数:
5.7K
论文数: 3.3K
被引数: 3.5K
引用论文

引用论文

Emotional, physical, and social needs among 0–5‐year‐old children displaced by the 2010 Chilean earthquake: associated characteristics and exposures
err2016-05-12
err0
PREAI
errMaryCatherine Arbour; Kara A. Murray; Hirokazu Yoshikawa; Felipe Arriet; Cecilia Moraga; Miguel Angel Cordero Vega
err分享
err收藏
err分享
err收藏
Structure of Binary Liquid Mixtures. I
err1967-04-15
err0
PREAI
errN. W. Ashcroft; David C. Langreth
err分享
err收藏
err分享
err收藏
Complementary chromosome folding by transcription factors and cohesin
err
IF0
err2018-04-23
err0
PREAI
errM. C. F. Pereira; C. A. Brackley; D. Michieletto; C. Annunziatella; S. Bianco; A. M. Chiariello; M. Nicodemi; D. Marenduzzo
err分享
err收藏
On the Naturalness of Software论软件的自然性
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
err分享
err收藏
学者 查看更多内容