PoolAggregatedSolutionRequest

toloka.client.aggregation.PoolAggregatedSolutionRequest | Source code

PoolAggregatedSolutionRequest(
self,
*,
type: Union[AggregatedSolutionType, str, None] = None,
pool_id: Optional[str] = None,
answer_weight_skill_id: Optional[str] = None,
fields: Optional[List[Field]] = None
)

Parameters for aggregating results in a pool using the aggregate_solutions_by_pool method.

Parameters description

ParametersTypeDescription
typeOptional[AggregatedSolutionType]

Aggregation model:

pool_idOptional[str]

The ID of the pool.

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:

aggregation_operation = toloka_client.aggregate_solutions_by_pool(
type=toloka.client.aggregation.AggregatedSolutionType.WEIGHTED_DYNAMIC_OVERLAP,
pool_id='1080020',
answer_weight_skill_id='11294',
fields=[toloka.client.aggregation.PoolAggregatedSolutionRequest.Field(name='result')]
)
aggregation_operation = toloka_client.wait_operation(aggregation_operation)
aggregation_results = list(toloka_client.get_aggregated_solutions(aggregation_operation.id))

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