Task Models¶
-
class
paperswithcode.models.task.
Area
(*, id: str, name: str)[source]¶ Area object.
Representing an area of research.
-
id
¶ Area ID.
- Type
str
-
name
¶ Area name.
- Type
str
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
-
-
class
paperswithcode.models.task.
Areas
(*, count: int, next_page: int = None, previous_page: int = None, results: List[paperswithcode.models.task.Area])[source]¶ Object representing a paginated page of areas.
-
count
¶ Number of elements matching the query.
- Type
int
-
next_page
¶ Number of the next page.
- Type
int, optional
-
previous_page
¶ Number of the previous page.
- Type
int, optional
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
-
-
class
paperswithcode.models.task.
Task
(*, id: str, name: str, description: str)[source]¶ Task object.
-
id
¶ Task ID.
- Type
str
-
name
¶ Task name.
- Type
str
-
description
¶ Task description.
- Type
str
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
-
-
class
paperswithcode.models.task.
TaskCreateRequest
(*, name: str, description: str = '', area: str = None, parent_task: str = None)[source]¶ Task object.
-
name
¶ Task name.
- Type
str
-
description
¶ Task description.
- Type
str
-
area
¶ Task area ID or area name.
- Type
str, optional
-
parent_task
¶ ID of the parent task.
- Type
str, optional
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
-
-
class
paperswithcode.models.task.
TaskUpdateRequest
(*, name: str = None, description: str = None, area: str = None, parent_task: str = None)[source]¶ Evaluation table row object.
-
name
¶ Task name.
- Type
str, optional
-
description
¶ Task description.
- Type
str, optional
-
area
¶ Task area ID.
- Type
str, optional
-
parent_task
¶ ID of the parent task.
- Type
str, optional
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
-
-
class
paperswithcode.models.task.
Tasks
(*, count: int, next_page: int = None, previous_page: int = None, results: List[paperswithcode.models.task.Task])[source]¶ Object representing a paginated page of tasks.
-
count
¶ Number of elements matching the query.
- Type
int
-
next_page
¶ Number of the next page.
- Type
int, optional
-
previous_page
¶ Number of the previous page.
- Type
int, optional
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
-