Designing Machine Learning Toolboxes: Concepts, Principles and Patterns
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 9 of its 44 references that are in the map. First posted on arXiv 13 Jan 2021.
Builds on
9 of 44 references.
References · 9
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014OpenML: networked science in machine learningcited by 526
- 2019sktime: A Unified Interface for Machine Learning with Time Seriescited by 102
- 2020Software engineering for artificial intelligence and machine learning software: A systematic literature reviewcited by 15
- 2020MLJ: A Julia package for composable machine learningcited by 9
- 2015Learning Reductions that Really Workcited by 3
- 2014Object-Oriented Programming, Functional Programming and Rcited by 2
- 2020Forecasting with sktime: Designing sktime's New Forecasting API and Applying It to Replicate and Extend the M4 Studycited by 2
- 2020mlr3proba: An R Package for Machine Learning in Survival Analysiscited by 1
Built on by
Citing papers per year: 2022: 2.
2 papers.