Interval

toloka.client.task_distribution_function.TaskDistributionFunction.Interval | Source code

Interval(
self,
*,
from_: Optional[int] = None,
to: Optional[int] = None,
frequency: Optional[int] = None
)

A count interval with associated frequency value.

If the number of tasks is in the interval then the task distribution uses the interval frequency.

The value of the frequency parameter encodes a period in a task sequence. For example, if frequency is 3, then the 1st, 4th, 7th tasks are selected. And so on.

Parameters description

ParametersTypeDescription
from_Optional[int]

The lower bound of the interval. Allowed values: up to 1,000,000.

toOptional[int]

The upper bound of the interval. Allowed values: up to 1,000,000.

frequencyOptional[int]

The frequency of tasks within an interval. Allowed values: from 1 to 10,000,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