{"library":"openml","title":"OpenML Python API","description":"OpenML Python API for downloading, uploading, and managing datasets, tasks, runs, and flows on OpenML.org. Current version 0.15.1, requires Python >=3.8. Released under BSD license. Active development with periodic releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install openml"],"cli":null},"imports":["import openml","from openml.datasets import get_dataset","from openml.tasks import get_task"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import openml\nopenml.config.apikey = openml.config.get_api_key()  # uses ~/.openml/config or environment\n# List datasets\ndatasets = openml.datasets.list_datasets()\nprint(f\"Number of datasets: {len(datasets)}\")\n# Download a dataset (iris)\ndataset = openml.datasets.get_dataset(61)\nX, y, categorical_names, attribute_names = dataset.get_data(target=dataset.default_target_attribute)\nprint(X.head())","lang":"python","description":"Setup OpenML, list datasets, download and inspect the Iris dataset.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}