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

Jupyter Notebook中机器学习项目的灵活单元格分类方法

A Flexible Cell Classification for ML Projects in Jupyter Notebooks

RWTH Aachen University(亚琛工业大学)

Miguel Perez, Selin Aydin, Horst Lichter

AI总结:

针对现有Jupyter Notebook ML代码单元分类工具依赖静态查找表、灵活性不足的问题,提出结合规则与决策树的混合分类方法,实现为JupyLabel工具,实验证明其性能显著优于现有工具HeaderGen。

摘要:

Jupyter Notebook是一种交互式开发环境,常用于机器学习(ML)解决方案的快速实验。对代码单元中执行的ML活动进行标注,可提升Notebook的可读性与可理解性。手动标注代码单元既耗时又容易出错,因此研究人员已开发出多种工具,可根据单元内执行的ML活动对Notebook的单元进行分类。但现有工具灵活性不足,它们依赖预先构建的查找表工作,这些表将常用ML库的函数调用映射到对应的ML活动,必须手动调整才能适配新增或变更的库。\n本文提出一种更灵活的单元分类方法,该方法基于混合分类策略,结合了基于规则的分类器与决策树分类器。我们探讨了设计原理,并详细介绍了所开发的分类器。我们将这种新型灵活单元分类方法实现为一款名为JupyLabel的工具,讨论了该工具的评估结果,以及在精确率、召回率和F1值方面的指标得分。此外,我们将JupyLabel与现有单元分类工具HeaderGen进行了对比,结果表明,本文提出的灵活单元分类方法的性能显著优于该工具。

英文摘要:

Jupyter Notebook is an interactive development environment commonly used for rapid experimentation of machine learning (ML) solutions. Describing the ML activities performed along code cells improves the readability and understanding of Notebooks. Manual annotation of code cells is time-consuming and error-prone. Therefore, tools have been developed that classify the cells of a notebook concerning the ML activity performed in them. However, the current tools are not flexible, as they work based on look-up tables that have been created, which map function calls of commonly used ML libraries to ML activities. These tables must be manually adjusted to account for new or changed libraries. This paper presents a more flexible approach to cell classification based on a hybrid classification approach that combines a rule-based and a decision tree classifier. We discuss the design rationales and describe the developed classifiers in detail. We implemented the new flexible cell classification approach in a tool called JupyLabel. Its evaluation and the obtained metric scores regarding precision, recall, and F1-score are discussed. Additionally, we compared JupyLabel with HeaderGen, an existing cell classification tool. We were able to show that the presented flexible cell classification approach outperforms this tool significantly.

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

↑