检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]哈尔滨师范大学计算机科学与信息工程学院,黑龙江 哈尔滨
出 处:《人工智能与机器人研究》2024年第4期883-890,共8页Artificial Intelligence and Robotics Research
摘 要:随着移动应用的快速发展,代码异味问题日益凸显,严重影响了软件的质量和性能。本文提出了一种基于机器学习的缓慢循环异味检测方法,旨在提高Android应用中代码异味的检测效率和准确性。研究首先构建了一个包含7000个样本的数据集,然后采用决策树(C4.5)、朴素贝叶斯(NB)、逻辑回归(LR)、随机森林(RF)和基于规则的归纳算法(JRip)五种机器学习算法进行缓慢循环异味的检测。实验结果表明,随机森林算法在查准率、查全率和F1值上均表现优异,其次是JRip算法。本研究的方法和结果为Android应用开发中代码异味的自动检测提供了有效的技术支持。With the rapid development of mobile applications, the issue of code smells has become increasingly prominent, severely affecting the quality and performance of software. This paper proposes a machine learning-based method for detecting slow loop smells, aiming to improve the efficiency and accuracy of detecting code smells in Android applications. The study first constructed a dataset containing 7000 samples, and then used five machine learning algorithms, including Decision Tree (C4.5), Naive Bayes (NB), Logistic Regression (LR), Random Forest (RF), and Rule-based Inductive Algorithm (JRip), to detect slow loop smells. The experimental results show that the Random Forest algorithm performed excellently in terms of precision, recall, and F1 score, followed by the JRip algorithm. The methods and results of this study provide effective technical support for the automatic detection of code smells in the development of Android applications.
分 类 号:TP3[自动化与计算机技术—计算机科学与技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222