Predicting Code Smells and Analysis of Predictions: Using Machine Learning Techniques and Software M

来源 :计算机科学技术学报(英文版) | 被引量 : 0次 | 上传用户:jimmy7346
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
Code smell detection is essential to improve software quality, enhancing software maintainability, and decrease the risk of faults and failures in the software system. In this paper, we proposed a code smell prediction approach based on machine learning techniques and software metrics. The local interpretable model-agnostic explanations (LIME) algorithm was further used to explain the machine learning model's predictions and interpretability. The datasets obtained from Fontana et al. were reformed and used to build binary-label and multi-label datasets. The results of 10-fold cross-validation show that the performance of tree-based algorithms (mainly Random Forest) is higher compared with kernel-based and network-based algorithms. The genetic algorithm based feature selection methods enhance the accuracy of these machine learning algorithms by selecting the most relevant features in each dataset. Moreover, the parameter optimization techniques based on the grid search algorithm significantly enhance the accuracy of all these algorithms. Finally, machine learning techniques have high potential in predicting the code smells, which contribute to detect these smells and enhance the software's quality.
其他文献
大棚蔬菜生产就要来到,近年来,随着保护地生产面积不断增加,设施农业高密度栽培及在同一块土地上连年种植一种作物,均有利于土传病害病原菌、根结线虫及地下害虫的积累、生
本文对板球系统进行了数学建模,并根据PID控制率的局限性设计了板球系统的模糊控制,实验结果表明模糊控制方法使板球系统易于稳定、控制效果较好。
本文介绍了工程机械参数监测仪的工作原理及功能,以8515单片机为中心,通过对安装在推土机、拖拉机、装载机等工程机械上的各种传感器输出信号实时采集,数据处理并记录,实现了对工
为评估甚低频发射天线效能,需对甚低频信号场强进行测量和数据处理。本文介绍了场强测量方案和测量数据处理方法,并利用仿真软件进行了数据比对,分析了误差原因,收到了良好效果。
针对弱交流信号测量时,导线过长和放大器底噪声干扰等问题,设计了一种弱交流信号智能测量装置。 文中介绍了装置的工作原理、性能及应用。该装置已经成功应用于鱼雷接收机弱
根据《中国制造 2025》的重要部署,工业和信息化部坚持创新驱动发展战略,积极推动国家制造业创新中心建设,致力于完善制造业创新体系,解决制约行业发展的共性关键技术,打通科
期刊
Static buffer overflow detection techniques tend to report too many false positives fundamentally due to the lack of software execution information. It is very
本文提出改善虚拟仪器VI和信号处理仪SPI幅值精度的INV频响函数阵列处理专门技术。VI和SPI的硬件系统的幅值精度由于受软硬件技术的影响,目前A类仪器幅值精度为2*10-2,B类为5-1
会议
要事业。还是要健康。这是一个处于竞争日益激烈的时代的现代人必然要作出回答的问题,且许多人的答案并不令人满意。尼索拉斯卡大学医学院的伊利奥,在43岁时就成为心脏病学
本文提出一种提高信号处理仪(SPI)和虚拟仪器(Ⅵ)硬件频率精度的新技术——DASP数字处理专门技术,使一般常规SPI和Ⅵ的硬件频率精度从十进制五位到六位提高到十进制七位到八
会议