[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-508434-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-508434-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","on-the-relation-between-code-quality-and-machine-learning-performance-a-large-scale-empirical-study","On the Relation between Code Quality and Machine Learning Performance - A Large-scale Empirical Study","","Computational notebooks are the standard environment for machine learning development, yet code quality is often treated as a secondary concern compared with model performance. This study tests the assumption that code quality and ML performance are unrelated and evaluates whether notebook popularity and author expertise act as quality proxies. Using 265,363 Python notebooks from Kaggle, the research applies Pylint and a SonarQube ML-focused rule profile to quantify violations.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/on-the-relation-between-code-quality-and-machine-learning-performance-a-large-scale-empirical-study/508434/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/on-the-relation-between-code-quality-and-machine-learning-performance-a-large-scale-empirical-study/508434.png","ImageObject",300,407,{"name":42,"@type":43},"mieayamfan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-10-05",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What assumption about code quality and ML performance does the study challenge?","Question",{"text":63,"@type":64},"It challenges the largely untested assumption that code quality and machine learning performance are unrelated. The study examines whether poor coding practices correlate with worse outcomes.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does the study measure code quality in notebooks?",{"text":68,"@type":64},"It uses static analysis: Pylint for general Python code quality and SonarQube configured with a 34-rule profile targeting data-science and ML-specific practices.",{"name":70,"@type":61,"acceptedAnswer":71},"What does the study find about notebook popularity and author expertise?",{"text":72,"@type":64},"Notebook popularity provides no information about code quality or performance, and code expertise does not predict either. Competition expertise correlates with better performance and fewer ML-specific violations.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},508434,1791693658,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":102,"preview_urls":146},962090893677,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","arXiv : 2609 . 106 10v 1 [cs .SE] 8 Sep 2026  \nNoname manuscript No.  \n(will be inserted by the editor)  \nOn the Relation between Code Quality and Machine Learning Performance: A Large-scale Empirical Study  \nMarius Mignard · Steven Costiou ∗ · Anne Etien ∗ .  \nReceived: date / Accepted: date  \nAbstract Context: Computational notebooks are the standard environment for machine learning (ML) development. Within the ML community, model performance is often the primary considered metric, and code quality is treated as a secondary concern. This prioritization relies on a largely untested assumption that code quality and ML performance are unrelated. Practitioners also reuse existing code that may come from notebooks selected through social signals (popularity, author expertise) whose reliability as quality proxies has never been assessed. Objective: We empirically investigated the relationship between code quality and ML performance in notebooks, and evaluated whether popularity and author expertise give indication on code quality or performance.  \nMethod: We conducted a large-scale empirical study of 265,363 Python notebooks submitted to Kaggle competitions. We assessed code quality with two static analysis tools: Pylint, capturing general Python code quality, and SonarQube, configured with a profile of 34 rules targeting data-science and ML-specific practices. Results: The relationship between code quality and performance depends on the notion of quality considered. General Python code quality is decoupled from ML performance, showing negligible or non-significant correlations across all observations. In contrast, ML-specific violations exhibit a consistent, small negative association with performance that persists across all observations. The popularity of a notebook does not give information on the code quality or performance. Code expertise provides no information on quality or performance, but competition expertise correlates with better performance, fewer ML-specific violations, and slightly more Python errors and refactoring violations.  \n*  \nThese authors are both last author Marius Mignard  \nUniv. Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL F-59000 Lille, France [E-mail: marius.mignard@inria.fr](E-mail: marius.mignard@inria.fr)  \nSteven Costiou  \nUMR 9189 CRIStAL, Univ. Lille, Inria, CNRS, Centrale Lille E-mail: [steven.costiou@inria.fr](steven.costiou@inria.fr)[ ](steven.costiou@inria.fr)Anne Etien  \nUMR 9189 CRIStAL, Univ. Lille, CNRS, Inria, Centrale Lille E-mail: [anne.etien@inria.fr](anne.etien@inria.fr)  \nConclusions: Following general software engineering best practices does not impact ML performance, while adhering to ML-specific practices is associated with better ML performance. Software engineering best practices should thus be integrated from the earliest stages of ML development, as the gains in reproducibility, maintainability, and comprehension will not negatively impact ML performance. Practitioners and researchers should not rely on popularity or expertise when selecting notebooks for reuse or sampling.  \nKeywords Code Quality, Static Analysis, Computational Notebooks, Machine learning  \n1 Introduction  \nComputational notebooks have become the standard environment for machine learning (ML) and data science, adopted across research, industry, and education [49,12,43,64] . Their cell-based, interactive design favors an iterative [49],”trial-and-error” workflow that prioritizes rapid experimentation [43] . However, this flexibility may come at a cost: a departure from established software engineering (SE) best practices. Within the ML community, the primary metric of success is often the model’s performance, frequently leading practitioners to treat code quality as a secondary concern [29,32,43,50] . This prioritization implicitly relies on a prevailing, yet largely untested, assumption: that ”clean code” and ”high performance” are distinct and unrelated factors. Such an assumption is risky. By negl","cbCaipHnPBaqQDJZ","https://ap.wps.com/l/cbCaipHnPBaqQDJZ","pdf",440463,55,"English","# Introduction\n# Method\n## Dataset and tools\n# Results\n## General vs ML-specific code quality\n# Conclusions","[{\"question\":\"What assumption about code quality and ML performance does the study challenge?\",\"answer\":\"It challenges the largely untested assumption that code quality and machine learning performance are unrelated. The study examines whether poor coding practices correlate with worse outcomes.\"},{\"question\":\"How does the study measure code quality in notebooks?\",\"answer\":\"It uses static analysis: Pylint for general Python code quality and SonarQube configured with a 34-rule profile targeting data-science and ML-specific practices.\"},{\"question\":\"What does the study find about notebook popularity and author expertise?\",\"answer\":\"Notebook popularity provides no information about code quality or performance, and code expertise does not predict either. Competition expertise correlates with better performance and fewer ML-specific violations.\"}]","On the Relation between Code Quality and Machine Learning Performance - A Large-scale Empirical Study | PDF",1791222406,139,[147,151,155,159,163,167],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b841504d2b09b0923522070d64b090e5.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c8e754df3b7666560b4b92e3ab4e2727.webp",982,1388,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5b549a66729aa325b6390a61f18ed874.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/06d0d903f7467bde07b3cce8f9448487.webp",980,1385,{"page_no":97,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a30f27ac638b6af67c99a3aa644d3368.webp",979,1384,{"page_no":102,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fbaad3542e941ae5ccd65f65f26bbdbc.webp",978,1383]