“项目气味”--用mlint分析ML项目软件质量的体会
"Project smells" -- Experiences in Analysing the Software Quality of ML Projects with mllint
摘要:
机器学习(ML)项目在开发和生产过程中遇到了传统软件应用程序的新挑战,尽管确保项目软件质量的既定原则和最佳实践仍然适用。虽然使用静态分析来捕捉代码气味已被证明可以提高软件质量属性,但这只是软件质量难题的一小部分,特别是在ML项目的情况下,因为它们面临额外的挑战,并且开发它们的数据科学家的软件工程(SE)经验较低。我们引入了项目气味的新概念,将项目管理中的缺陷视为ML项目中软件质量的更全面的视角。还实现了一个开源的静态分析工具mlint来帮助检测和缓解这些问题。我们的研究评估了ING(一家全球性银行和大型软件和数据密集型组织)行业背景下的项目气味这一新概念。我们还调查了这些项目气味对于概念验证与生产就绪ML项目的重要性,以及使用静态分析工具(如mlint)的障碍和好处。我们的研究结果表明,需要上下文感知的静态分析工具,适合项目的需求,在其当前的发展阶段,同时需要最小的配置工作从用户。
英文摘要:
Machine Learning (ML) projects incur novel challenges in their development and productionisation over traditional software applications, though established principles and best practices in ensuring the project's software quality still apply. While using static analysis to catch code smells has been shown to improve software quality attributes, it is only a small piece of the software quality puzzle, especially in the case of ML projects given their additional challenges and lower degree of Software Engineering (SE) experience in the data scientists that develop them. We introduce the novel concept of project smells which consider deficits in project management as a more holistic perspective on software quality in ML projects. An open-source static analysis tool mllint was also implemented to help detect and mitigate these. Our research evaluates this novel concept of project smells in the industrial context of ING, a global bank and large software- and data-intensive organisation. We also investigate the perceived importance of these project smells for proof-of-concept versus production-ready ML projects, as well as the perceived obstructions and benefits to using static analysis tools such as mllint. Our findings indicate a need for context-aware static analysis tools, that fit the needs of the project at its current stage of development, while requiring minimal configuration effort from the user.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。