openml.tasks.list_tasks

openml.tasks.list_tasks(task_type: TaskType | None = None, offset: int | None = None, size: int | None = None, tag: str | None = None, output_format: str = 'dict', **kwargs) Dict | DataFrame

Return a number of tasks having the given tag and task_type

Parameters:
Filter task_type is separated from the other filters because
it is used as task_type in the task description, but it is named
type when used as a filter in list tasks call.
task_typeTaskType, optional

Refers to the type of task.

offsetint, optional

the number of tasks to skip, starting from the first

sizeint, optional

the maximum number of tasks to show

tagstr, optional

the tag to include

output_format: str, optional (default=’dict’)

The parameter decides the format of the output. - If ‘dict’ the output is a dict of dict - If ‘dataframe’ the output is a pandas DataFrame

kwargs: dict, optional

Legal filter operators: data_tag, status, data_id, data_name, number_instances, number_features, number_classes, number_missing_values.

Returns:
dict

All tasks having the given task_type and the give tag. Every task is represented by a dictionary containing the following information: task id, dataset id, task_type and status. If qualities are calculated for the associated dataset, some of these are also returned.

dataframe

All tasks having the given task_type and the give tag. Every task is represented by a row in the data frame containing the following information as columns: task id, dataset id, task_type and status. If qualities are calculated for the associated dataset, some of these are also returned.