GoldenSetAnswersCount

toloka.client.conditions.GoldenSetAnswersCount | Source code

GoldenSetAnswersCount(
self,
operator: CompareOperator,
value: Optional[int] = None
)

The number of completed control tasks.

GoldenSetAnswersCount is used with collectors:

Examples:

pool = toloka.client.pool.Pool()
pool.quality_control.add_action(
collector=toloka.client.collectors.GoldenSet(history_size=5),
conditions=[
toloka.client.conditions.GoldenSetCorrectAnswersRate > 80,
toloka.client.conditions.GoldenSetAnswersCount >= 5,
],
action=toloka.client.actions.ApproveAllAssignments()
)

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