Training

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 train Tolokers so they solve general tasks better.
  • To select Tolokers who successfully completed training tasks and to give them access to a general pool.

To link a training to a general pool set the Pool.quality_control.training_requirement parameter.

For more information, see Adding a training.

Parameters description

ParametersTypeDescription
project_idOptional[str]

The ID of the project containing the training.

private_nameOptional[str]

The training name. It is visible to the requester only.

may_contain_adult_contentOptional[bool]

The presence of adult content.

assignment_max_duration_secondsOptional[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_orderOptional[bool]
  • True — Tasks are grouped in suites in the order they were created.
  • False — Tasks are chosen for a task suite in a random order.

Default: True.

shuffle_tasks_in_task_suiteOptional[bool]
  • True — Tasks from a task suite are shuffled on the page.
  • False — Tasks from a task suite are placed on the page in the order they were created.

Default: True.

training_tasks_in_task_suite_countOptional[int]

The number of training tasks in one task suite.

task_suites_required_to_passOptional[int]

The number of task suites that must be completed by a Toloker to get a training skill.

retry_training_after_daysOptional[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_instructionsOptional[bool]
  • True — Project instructions are used in the training.
  • False — Instruction, specified in the public_instructions parameter, are used.

Default: False.

public_instructionsOptional[str]

Instructions for Tolokers used when the inherited_instructions parameter is False. Describe in the instructions how to complete training tasks. You can use HTML markup inside public_instructions.

metadataOptional[Dict[str, List[str]]]

A dictionary with metadata.

ownerOptional[Owner]

The training owner.

idOptional[str]

The ID of the training. Read-only field.

statusOptional[Status]

The training status. Read-only field.

last_close_reasonOptional[CloseReason]

A reason why the training was closed last time. Read-only field.

createdOptional[datetime]

The UTC date and time when the training was created. Read-only field.

last_startedOptional[datetime]

The UTC date and time when the training was started last time. Read-only field.

last_stoppedOptional[datetime]

The UTC date and time when the training was stopped last time. Read-only field.

Methods summary

MethodDescription
is_archivedNone
is_closedNone
is_lockedNone
is_openNone
set_ownerA shortcut setter for owner

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming