openml.tasks
.get_task¶
- openml.tasks.get_task(task_id: int, download_splits: bool = False, **get_dataset_kwargs: Any) OpenMLTask ¶
Download OpenML task for a given task ID.
Downloads the task representation.
Use the download_splits parameter to control whether the splits are downloaded. Moreover, you may pass additional parameter (args or kwargs) that are passed to
openml.datasets.get_dataset()
.- Parameters:
- task_idint
The OpenML task id of the task to download.
- download_splits: bool (default=False)
Whether to download the splits as well.
- get_dataset_kwargs
Args and kwargs can be used pass optional parameters to
openml.datasets.get_dataset()
.
- Returns:
- task: OpenMLTask