openml/openml-python
openml/openml-python has 375 GitHub stars and 312 forks. GitHot measured +1 stars in 24 hours and +2 in 7 days. Last checked 2026-11-09 23:18 UTC. Last push 2026-11-05.
OpenML's Python API for a World of Data and More 💫
Measured star growth
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOpenML-Python
The Python API for a World of Data and More :dizzy:
OpenML-Python provides an easy-to-use and straightforward Python interface for OpenML, an online platform for open science collaboration in machine learning. It can download or upload data from OpenML, such as datasets and machine learning experiment results.
:joystick: Minimal Example
Use the following code to get the credit-g dataset:
import openml
dataset = openml.datasets.get_dataset("credit-g") # or by ID get_dataset(31)
X, y, categorical_indicator, attribute_names = dataset.get_data(target="class")
Get a task for supervised classification on credit-g:
import openml
task = openml.tasks.get_task(31)
dataset = task.get_dataset()
X, y, categorical_indicator, attribute_names = dataset.get_data(target=task.target_name)
# get splits for the first fold of 10-fold cross-validation
train_indices, test_indices = task.get_train_test_split_indices(fold=0)
Use an OpenML benchmarking suite to get a curated list of machine-learning tasks:
import openml
suite = openml.study.get_suite(
"amlb-classification-all"
) # Get a curated list of tasks for classification
for task_id in suite.tasks:
task = openml.tasks.get_task(task_id)
:magic_wand: Installation
OpenML-Python is supported on Python 3.10 - 3.14 and is available on Linux, MacOS, and Windows.
You can install OpenML-Python with:
pip install openml
:page_facing_up: Citing OpenML-Python
If you use OpenML-Python in a scientific publication, we would appreciate a reference to the following paper:
Bibtex entry:
@article{JMLR:v22:19-920,
author = {Matthias Feurer and Jan N. van Rijn and Arlind Kadra and Pieter Gijsbers and Neeratyoy Mallik and Sahithya Ravi and Andreas Müller and Joaquin Vanschoren and Frank Hutter},
title = {OpenML-Python: an extensible Python API for OpenML},
journal = {Journal of Machine Learning Research},
year = {2021},
volume = {22},
number = {100},
pages = {1--5},
url = {http://jmlr.org/papers/v22/19-920.html}
}
:handshake: Contributing
We welcome contributions from both new and experienced developers!
If you would like to contribute to OpenML-Python, please read our Contribution Guidelines.
If you are new to open-source development, a great way to get started is by looking at issues labeled "good first issue" in our GitHub issue tracker. These tasks are beginner-friendly and help you understand the project structure, development workflow, and how to submit a pull request.
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,274 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,024 stars