Revisiting code smell severity prioritization using learning to rank techniques

优先次序 计算机科学 编码(集合论) 秩(图论) 人工智能 学习排名 机器学习 排名(信息检索) 程序设计语言 数学 过程管理 业务 集合(抽象数据类型) 组合数学
作者
Lei Liu,Guancheng Lin,Lin Zhu,Zhen Yang,Peilin Song,Xin Wang,Wenhua Hu
出处
期刊:Expert Systems With Applications [Elsevier BV]
卷期号:: 123483-123483 被引量:1
标识
DOI:10.1016/j.eswa.2024.123483
摘要

Code Smell Severity Prioritization (CSSP) is crucial in helping software developers minimize software maintenance costs and enhance software quality, particularly when faced with limited refactoring resources. Traditional code smell prioritization methods rely heavily on manual and semi-automatic approaches based on developer experience, often demanding considerable time and effort from experienced experts. Leveraging automated machine learning techniques can effectively overcome these limitations. However, most existing machine learning-based CSSP works have only considered limited pointwise Learning To Rank (LTR) algorithms and have used inappropriate metrics (e.g., Accuracy, Spearman, and MAE) to assess the performance of models. To address these limitations, we make a comprehensive comparison of 41 pointwise, 4 pairwise, and 4 listwise LTR algorithms for CSSP on four code smell severity datasets. Furthermore, we propose the adoption of Severity@20% and Cumulative Lift Chart (CLC) as the primary evaluation metrics to assess CSSP models more effectively. The results show that: (1) The ordinal Bagging (O-Bagging) algorithm demonstrates the highest performance for CSSP, achieving superior results in Severity@20% and CLC. (2) The ordinal classification method can help the top-performing base classification algorithms Bagging and XGBoost achieve better performance for CSSP tasks. (3) A higher (lower) Accuracy, higher (lower) Spearman, and lower (higher) MAE do not reliably indicate better (worse) performance for CSSP. This further underscores that Accuracy, Spearman, and MAE are unsuitable metrics for evaluating CSSP models’ effectiveness. To summarize, our study suggest that developers employ the O-Bagging algorithm for CSSP, with Severity@20% and CLC serving as the primary evaluation metrics.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
王唯一发布了新的文献求助10
刚刚
NPC-CBI发布了新的文献求助10
刚刚
1秒前
1秒前
星辰大海应助rayce采纳,获得10
2秒前
科研通AI6.2应助韩豆乐采纳,获得10
2秒前
Wendy发布了新的文献求助10
2秒前
不安的紫丝完成签到,获得积分10
3秒前
Siavy完成签到,获得积分10
4秒前
小希发布了新的文献求助10
4秒前
我超爱cs完成签到,获得积分10
4秒前
杨晓柳发布了新的文献求助10
4秒前
4秒前
4秒前
清脆元槐发布了新的文献求助10
5秒前
笠昂发布了新的文献求助10
5秒前
SciGPT应助品品采纳,获得10
6秒前
6秒前
theo完成签到,获得积分10
6秒前
Yimco发布了新的文献求助10
7秒前
DK完成签到,获得积分10
7秒前
8秒前
kingwill完成签到,获得积分0
8秒前
kingwill完成签到,获得积分0
8秒前
简单幸福完成签到 ,获得积分10
10秒前
小花发布了新的文献求助30
10秒前
11秒前
九芒星完成签到,获得积分10
11秒前
刘的花发布了新的文献求助10
11秒前
xiliii完成签到,获得积分10
11秒前
12秒前
踏实的亦凝完成签到,获得积分10
12秒前
蛋挞完成签到,获得积分10
12秒前
寒假工完成签到 ,获得积分10
13秒前
啦啦啦啦啦完成签到,获得积分10
13秒前
13秒前
可不可以不勇敢完成签到 ,获得积分10
13秒前
深情安青应助alloe1采纳,获得10
13秒前
14秒前
KKwang完成签到 ,获得积分10
14秒前
高分求助中
Adhesion Science: Principles & Practice 1234
Signals, Systems, and Signal Processing 610
Introduction to Cosmetic Formulation and Technology, 2nd Edition 400
Petrology and Plate Tectonics,2025 400
Burger's Medicinal Chemistry and Drug Discovery 400
Programming for Chemical Engineers Using C, C++, and MATLAB 320
Birth of Twins After Genome Editing for HIV Resistance 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6691782
求助须知:如何正确求助?哪些是违规求助? 8434902
关于积分的说明 18021948
捐赠科研通 5919632
什么是DOI,文献DOI怎么找? 2985273
邀请新用户注册赠送积分活动 1961215
关于科研通互助平台的介绍 1900422