Print Email Facebook Twitter Automated Detection of Code Smells for Machine Learning Applications Title Automated Detection of Code Smells for Machine Learning Applications Author Zhang, Haiyin (TU Delft Electrical Engineering, Mathematics and Computer Science) Contributor Cruz, Luis (mentor) van Deursen, A. (mentor) Yang, J. (graduation committee) Degree granting institution Delft University of Technology Programme Computer Science Date 2022-07-07 Abstract The popularity of machine learning has wildly expanded in recent years. Machine learning techniques have been heatedly studied in academia and applied in the industry to create business value. However, there is a lack of guidelines for code quality in machine learning applications. Although machine learning code is usually integrated as a small part of an overarching system, it usually plays an important role in its core functionality. Hence ensuring code quality is quintessential to avoiding issues in the long run. To help improve the machine learning code quality, we conducted two studies in this thesis. The first study proposes and identifies a list of 22 machine learning-specific code smells collected from various sources, including papers, grey literature, GitHub commits, and Stack Overflow posts. We pinpoint each smell with a description of its context, potential issues in the long run, and proposed solutions. In addition, we link them to their respective pipeline stage and the evidence from both academic and grey literature. The second study aims to develop a tool to improve code quality and study the prevalence of machine learning-specific code smells. We extend a static analysis tool dslinter and run it on both Python notebook datasets and regular Python project datasets. Moreover, we analyse the result to check the tool's validity and investigate the code smell prevalence in machine learning applications. The code smell catalog and dslinter together help data scientists and developers produce and maintain high-quality machine learning application code. Subject Software QualityStatic Code AnalysisMachine LearningTechnical Debt To reference this document use: http://resolver.tudelft.nl/uuid:bd2b288e-08f9-4200-92c8-ee48bfff9408 Part of collection Student theses Document type master thesis Rights © 2022 Haiyin Zhang Files PDF MSc_Thesis_Automated_Dete ... ations.pdf 3.45 MB Close viewer /islandora/object/uuid:bd2b288e-08f9-4200-92c8-ee48bfff9408/datastream/OBJ/view