Catalog of the datasets bundled with TuiML.
Holds DATASET_REGISTRY, the metadata table describing every built-in dataset, plus the functions that read it (get_dataset_info, get_datasets_by_task) and the name-based loaders that work for any dataset in the catalog (list_datasets, load_dataset).
Each registry entry records the task type, shape, and a one-line description, which makes the catalog directly usable as context for an LLM deciding which dataset to reach for. The per-dataset convenience loaders (load_iris and friends) live in the sibling classification, regression, and other modules.
>>> from tuiml.datasets import list_datasets, load_dataset, get_datasets_by_task
>>> list_datasets("regression")
['airline', 'cpu', 'cpu_with_vendor']
>>> data = load_dataset("iris")
>>> sorted(get_datasets_by_task("association"))
['supermarket']
Functions
Get metadata about built-in datasets in an LLM-friendly format.
Parameters
name
Returns
dict
Raises
ValueError
name is not a registered dataset.
>>> from tuiml.datasets import get_dataset_info
>>> info = get_dataset_info("diabetes")
>>> print(info["samples"])
768
Get datasets filtered by task type (LLM-friendly).
Parameters
task
Returns
dict
>>> from tuiml.datasets import get_datasets_by_task
>>> get_datasets_by_task("classification")
>>> get_datasets_by_task("regression")
List names of all available built-in datasets.
Parameters
category
Optional filter to restrict results to a specific category:
- •
"classification" - •
"regression" - •
"other"(Association, Text, etc.)
Returns
List[str]
Raises
ValueError
category is not one of the three known categories.
>>> from tuiml.datasets import list_datasets
>>> available = list_datasets("regression")
>>> print(available)
['airline', 'cpu', 'cpu_with_vendor']
Load a built-in dataset by its registry name.
Parameters
name
'iris', 'diabetes', 'cpu').
Returns
Dataset
Raises
ValueError
name.
>>> from tuiml.datasets import load_dataset
>>> iris = load_dataset('iris')
>>> X, y = iris