WeightedDynamicOverlapTaskAggregatedSolutionRequest

toloka.client.aggregation.WeightedDynamicOverlapTaskAggregatedSolutionRequest | Source code

WeightedDynamicOverlapTaskAggregatedSolutionRequest(
self,
*,
task_id: Optional[str] = None,
pool_id: Optional[str] = None,
answer_weight_skill_id: Optional[str] = None,
fields: Optional[List[Field]] = None
)

Parameters to run weighted aggregation for a single task with a dynamic overlap.

Parameters description

ParametersTypeDescription
task_idOptional[str]

The ID of the task.

pool_idOptional[str]

The ID of the pool containing the task.

answer_weight_skill_idOptional[str]

The ID of the skill that determines the weight of the Toloker's responses.

fieldsOptional[List[Field]]

Output data fields to aggregate. For the best results, each of these fields should have limited number of response options. If the DAWID_SKENE aggregation type is selected, you can only specify one value.

Examples:

aggregated = toloka_client.aggregate_solutions_by_task(
pool_id='1238218',
task_id='000012e4ca--62e97a75dbab805456309d81',
answer_weight_skill_id='12648',
fields=[toloka.client.aggregation.PoolAggregatedSolutionRequest.Field(name='result')]
)
print(aggregated.output_values['result'])

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