AssignmentsAssessment

toloka.client.collectors.AssignmentsAssessment | Source code

AssignmentsAssessment(self, *, uuid: Optional[UUID] = None)

Counts accepted and rejected assignments for every task suite.

Collector use cases.

  • To reassign rejected task suite to other Tolokers increase the overlap of the task suite. It is essential if the default overlap value is 1.
  • You accept an assignment and don't need to collect more responses for that task suite. To save money stop assigning the task suite.

The collector can be used with conditions:

The collector can be used with actions:

Parameters description

ParametersTypeDescription
uuidOptional[UUID]

The ID of a collector. Note that when you clone a pool, both pools start using the same collector, because it is not cloned. Usually, it is not an intended behavior. For example, in this case one collector gathers history size from both pools.

Examples:

The example shows how to reassign rejected task suites to other Tolokers.

new_pool = toloka.client.pool.Pool()
new_pool.quality_control.add_action(
collector=toloka.client.collectors.AssignmentsAssessment(),
conditions=[toloka.client.conditions.AssessmentEvent == toloka.client.conditions.AssessmentEvent.REJECT],
action=toloka.client.actions.ChangeOverlap(delta=1, open_pool=True),
)

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