TaskDistributionFunction

toloka.client.task_distribution_function.TaskDistributionFunction | Source code

TaskDistributionFunction(
self,
*,
scope: Union[Scope, str, None] = None,
distribution: Union[Distribution, str, None] = None,
window_days: Optional[int] = None,
intervals: Optional[List[Interval]] = None
)

A configuration of selecting tasks.

It is used:

  • To control the selection of tasks for the selective majority vote checks.
  • To change the frequency of assigning control or training tasks.

Parameters description

ParametersTypeDescription
scopeOptional[Scope]

A way of counting tasks completed by a Toloker:

  • POOL — Completed pool tasks are counted.
  • PROJECT — All completed project tasks are counted.
distributionOptional[Distribution]

The distribution of selected tasks within an interval. Allowed values: UNIFORM.

window_daysOptional[int]

The number of days in which completed tasks are counted. Allowed values: from 1 to 365.

intervalsOptional[List[Interval]]

A list of count intervals with frequency values. The maximum number of list items is 10,000.

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