Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docstrings for TaskType
  • Loading branch information
fsabr committed Oct 2, 2020
commit 3aa2d10bead3bc9dfb491b1004dc0f6cd3eee4eb
6 changes: 3 additions & 3 deletions openml/tasks/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def list_tasks(
Filter task_type_id is separated from the other filters because
it is used as task_type_id in the task description, but it is named
type when used as a filter in list tasks call.
task_type_id : int, optional
task_type_id : TaskType, optional
ID of the task type as detailed `here <https://www.openml.org/search?type=task_type>`_.
- Supervised classification: 1
- Supervised regression: 2
Expand Down Expand Up @@ -195,7 +195,7 @@ def _list_tasks(task_type_id=None, output_format="dict", **kwargs):
Filter task_type_id is separated from the other filters because
it is used as task_type_id in the task description, but it is named
type when used as a filter in list tasks call.
task_type_id : int, optional
task_type_id : TaskType, optional
Comment thread
PGijsbers marked this conversation as resolved.
Outdated
ID of the task type as detailed
`here <https://www.openml.org/search?type=task_type>`_.
- Supervised classification: 1
Expand Down Expand Up @@ -480,7 +480,7 @@ def create_task(

Parameters
----------
task_type_id : int
task_type_id : TaskType
Id of the task type.
dataset_id : int
The id of the dataset for the task.
Expand Down
2 changes: 1 addition & 1 deletion openml/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class OpenMLTask(OpenMLBase):

Parameters
----------
task_type_id : int
task_type_id : TaskType
Refers to the type of task.
task_type : str
Refers to the task.
Expand Down