openml.tasks.get_task

openml.tasks.get_task(task_id: int, download_data: bool = True) → openml.tasks.task.OpenMLTask

Download OpenML task for a given task ID.

Downloads the task representation, while the data splits can be downloaded optionally based on the additional parameter. Else, splits will either way be downloaded when the task is being used.

Parameters
task_idint or str

The OpenML task id.

download_databool

Option to trigger download of data along with the meta data.

Returns
task