设计机器学习工具箱:概念、原则和模式
Designing Machine Learning Toolboxes: Concepts, Principles and Patterns
摘要:
scikit-learn或Weka等机器学习(ML)和人工智能工具箱是当代数据科学实践的主力-它们的核心角色由可用但功能强大的设计实现,这些设计允许轻松指定,训练和验证复杂的建模管道。然而,尽管它们普遍取得了成功,但其构造中的关键设计原则从未得到充分分析。在本文中,我们试图提供AI建模工具箱设计中的关键模式的概述,从软件工程领域,当代工具箱中发现的实现模式以及我们自己开发ML工具箱的经验中获得灵感。特别是,我们为AI/ML领域开发了一个概念模型,其核心是一个新的类型系统,称为科学类型。科学类型根据我们通常使用它们执行的操作集(即它们的接口)及其统计属性来捕获ML工作流中常见元素的科学含义。从我们的概念分析中,我们得出了一套设计原则和模式。我们说明,我们的分析不仅可以解释现有的工具箱的设计,但也指导新的开发。我们希望我们的贡献是未来工具箱工程师的最先进的参考,最佳实践的总结,ML设计模式的集合,可能对未来的研究有用,并且可能是构建AI的更高级别编程范式的第一步。
英文摘要:
Machine learning (ML) and AI toolboxes such as scikit-learn or Weka are workhorses of contemporary data scientific practice -- their central role being enabled by usable yet powerful designs that allow to easily specify, train and validate complex modeling pipelines. However, despite their universal success, the key design principles in their construction have never been fully analyzed. In this paper, we attempt to provide an overview of key patterns in the design of AI modeling toolboxes, taking inspiration, in equal parts, from the field of software engineering, implementation patterns found in contemporary toolboxes, and our own experience from developing ML toolboxes. In particular, we develop a conceptual model for the AI/ML domain, with a new type system, called scientific types, at its core. Scientific types capture the scientific meaning of common elements in ML workflows based on the set of operations that we usually perform with them (i.e. their interface) and their statistical properties. From our conceptual analysis, we derive a set of design principles and patterns. We illustrate that our analysis can not only explain the design of existing toolboxes, but also guide the development of new ones. We intend our contribution to be a state-of-art reference for future toolbox engineers, a summary of best practices, a collection of ML design patterns which may become useful for future research, and, potentially, the first steps towards a higher-level programming paradigm for constructing AI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。