toloka.client.training.Training
| Source code
Training( self, *, project_id: Optional[str] = None, private_name: Optional[str] = None, may_contain_adult_content: Optional[bool] = None, assignment_max_duration_seconds: Optional[int] = None, mix_tasks_in_creation_order: Optional[bool] = None, shuffle_tasks_in_task_suite: Optional[bool] = None, training_tasks_in_task_suite_count: Optional[int] = None, task_suites_required_to_pass: Optional[int] = None, retry_training_after_days: Optional[int] = None, inherited_instructions: Optional[bool] = None, public_instructions: Optional[str] = None, metadata: Optional[Dict[str, List[str]]] = None, owner: Optional[Owner] = None, id: Optional[str] = None, status: Optional[Status] = None, last_close_reason: Optional[CloseReason] = None, created: Optional[datetime] = None, last_started: Optional[datetime] = None, last_stopped: Optional[datetime] = None)
A training.
A training is a pool containing tasks with known solutions and hints for Tolokers. Use trainings:
To link a training to a general pool set the Pool.quality_control.training_requirement parameter.
For more information, see Adding a training.
Parameters | Type | Description |
---|---|---|
project_id | Optional[str] | The ID of the project containing the training. |
private_name | Optional[str] | The training name. It is visible to the requester only. |
may_contain_adult_content | Optional[bool] | The presence of adult content. |
assignment_max_duration_seconds | Optional[int] | Time limit to complete a task suite. Take into account loading a page with a task suite and sending responses to the server. It is recommended that you set at least 60 seconds. |
mix_tasks_in_creation_order | Optional[bool] |
Default: |
shuffle_tasks_in_task_suite | Optional[bool] |
Default: |
training_tasks_in_task_suite_count | Optional[int] | The number of training tasks in one task suite. |
task_suites_required_to_pass | Optional[int] | The number of task suites that must be completed by a Toloker to get a training skill. |
retry_training_after_days | Optional[int] | The training can be completed again after the specified number of days to update the training skill. If the parameter is not specified, then the training skill is issued for an unlimited time. |
inherited_instructions | Optional[bool] |
Default: |
public_instructions | Optional[str] | Instructions for Tolokers used when the |
metadata | Optional[Dict[str, List[str]]] | A dictionary with metadata. |
owner | Optional[Owner] | The training owner. |
id | Optional[str] | The ID of the training. Read-only field. |
status | Optional[Status] | The training status. Read-only field. |
last_close_reason | Optional[CloseReason] | A reason why the training was closed last time. Read-only field. |
created | Optional[datetime] | The UTC date and time when the training was created. Read-only field. |
last_started | Optional[datetime] | The UTC date and time when the training was started last time. Read-only field. |
last_stopped | Optional[datetime] | The UTC date and time when the training was stopped last time. Read-only field. |
Method | Description |
---|---|
is_archived | None |
is_closed | None |
is_locked | None |
is_open | None |
set_owner | A shortcut setter for owner |
Last updated: August 28, 2023