arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.02541cs.SEcs.AI
收藏

机器学习特定代码坏味的自动识别

Automatic Identification of Machine Learning-Specific Code Smells

Roxtec Group(Roxtec集团);Ericsson(爱立信);Blekinge Institute of Technology(布莱金厄理工学院);Federal University of Ceará(塞阿拉联邦大学)

Peter Hamfelt, Ricardo Britto, Lincoln Rocha, Camilo Almendra

AI总结:

本研究设计并开发了静态代码分析工具MLpylint,用于自动识别ML特定代码坏味,并在160个开源项目和15位专家调查中验证了其有效性和实用性。

摘要:

机器学习(ML)的普及度迅速增长,已成为许多行业的关键技术。目前,针对ML应用中代码坏味的研究缺乏用于识别和验证ML特定代码坏味的工具和研究。本研究探讨了合适的方法和工具,以基于代码坏味标准设计和开发一个静态代码分析工具(MLpylint)。本研究采用了设计科学方法论。在问题识别阶段,进行了文献综述以识别ML特定的代码坏味。在解决方案设计阶段,进行了二次文献综述并咨询了专家,以选择实现该工具的方法和工具。我们使用来自GitHub的160个开源ML应用的数据对工具进行了评估。我们还通过一项涉及15位ML专业人士的专家调查进行了静态验证。结果表明MLpylint的有效性和实用性。我们旨在通过研究如何将MLpylint无缝集成到开发工作流程中,以扩展我们当前的方法,从而营造一个更高效和创新的开发者环境。

英文摘要:

Machine learning (ML) has rapidly grown in popularity, becoming vital to many industries. Currently, the research on code smells in ML applications lacks tools and studies that address the identification and validity of ML-specific code smells. This work investigates suitable methods and tools to design and develop a static code analysis tool (MLpylint) based on code smell criteria. This research employed the Design Science Methodology. In the problem identification phase, a literature review was conducted to identify ML-specific code smells. In solution design, a secondary literature review and consultations with experts were performed to select methods and tools for implementing the tool. We evaluated the tool on data from 160 open-source ML applications sourced from GitHub. We also conducted a static validation through an expert survey involving 15 ML professionals. The results indicate the effectiveness and usefulness of the MLpylint. We aim to extend our current approach by investigating ways to introduce MLpylint seamlessly into development workflows, fostering a more productive and innovative developer environment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑