Skip to main content
QUICK REVIEW

[Paper Review] OpenML-Python: an extensible Python API for OpenML

Matthias Feurer, Jan N. van Rijn|arXiv (Cornell University)|Nov 6, 2019
Machine Learning and Data ClassificationComputer Science14 references18 citations
TL;DR

OpenML-Python is a Python API that enables seamless integration with the OpenML platform, allowing researchers to access datasets, tasks, and experiment results programmatically. It supports reproducible machine learning by facilitating experiment sharing, results upload, and integration with scikit-learn and other Python ML libraries through a standardized extension interface.

ABSTRACT

OpenML is an online platform for open science collaboration in machine learning, used to share datasets and results of machine learning experiments. In this paper we introduce OpenML-Python, a client API for Python, opening up the OpenML platform for a wide range of Python-based tools. It provides easy access to all datasets, tasks and experiments on OpenML from within Python. It also provides functionality to conduct machine learning experiments, upload the results to OpenML, and reproduce results which are stored on OpenML. Furthermore, it comes with a scikit-learn plugin and a plugin mechanism to easily integrate other machine learning libraries written in Python into the OpenML ecosystem. Source code and documentation is available at https://github.com/openml/openml-python/.

Motivation & Objective

  • To provide a user-friendly, programmatic interface for accessing OpenML’s datasets, tasks, and experiment results within the Python ecosystem.
  • To enable researchers to conduct, publish, and reproduce machine learning experiments with full provenance tracking via OpenML.
  • To support extensibility by offering a standardized extension mechanism for integrating new Python-based machine learning libraries into the OpenML ecosystem.
  • To enhance reproducibility and collaboration in machine learning by automating the sharing of hyperparameters, random seeds, and evaluation metrics.
  • To streamline benchmarking and meta-learning by enabling large-scale, consistent access to curated datasets and experiment results.

Proposed method

  • Exposes OpenML’s REST API through a Pythonic object-oriented interface, mapping OpenML entities (datasets, tasks, flows, runs) to Python classes.
  • Converts OpenML data formats into standard Python data structures such as numpy arrays, scipy sparse matrices, and pandas DataFrames.
  • Provides a scikit-learn extension that maps scikit-learn estimators to OpenML flows and enables training, prediction, and result upload with full metadata.
  • Implements an extensibility framework allowing new ML libraries to integrate via a defined interface for model conversion, training, and prediction formatting.
  • Supports offline usage by caching data and enabling local experimentation with OpenML metadata.
  • Uses continuous integration, automated type checking, and Sphinx-based documentation to ensure code quality and usability.

Experimental results

Research questions

  • RQ1How can a Python-based machine learning ecosystem be seamlessly integrated with the OpenML platform for shared data and experiment reproducibility?
  • RQ2What is the most effective way to standardize interactions between diverse Python ML libraries and a centralized machine learning repository like OpenML?
  • RQ3Can a unified API reduce the complexity of sharing, reusing, and benchmarking machine learning experiments across multiple datasets and algorithms?
  • RQ4How can provenance tracking (e.g., hyperparameters, random seeds, model configurations) be automated and preserved during experiment execution and upload?
  • RQ5To what extent can OpenML-Python facilitate large-scale meta-learning and algorithm comparison studies using consistent, shared data and results?

Key findings

  • OpenML-Python enables programmatic access to over 10,000 datasets and millions of experiments on OpenML, with standardized data conversion to numpy, scipy, and pandas formats.
  • The scikit-learn extension allows users to train models, generate predictions, and upload results with minimal code, including full hyperparameter and random seed tracking.
  • The extension mechanism enables integration of other Python ML libraries that follow the scikit-learn API, promoting ecosystem-wide reproducibility and interoperability.
  • The package has been used in large-scale studies involving hundreds of datasets, enabling consistent benchmarking and meta-learning research.
  • The API supports automated result sharing and reproducibility, with features like contour plots of hyperparameter performance (e.g., SVM C and gamma) visualized directly from OpenML data.
  • The project is actively maintained with community contributions, continuous integration, and comprehensive documentation hosted on GitHub and Read the Docs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.