AggregatedSolution

toloka.client.aggregation.AggregatedSolution | Source code

AggregatedSolution(
self,
*,
pool_id: Optional[str] = None,
task_id: Optional[str] = None,
confidence: Optional[float] = None,
output_values: Optional[Dict[str, Any]] = None
)

An aggregated response to a task.

Parameters description

ParametersTypeDescription
pool_idOptional[str]

The ID of the pool containing the task.

task_idOptional[str]

The ID of the task.

confidenceOptional[float]

The confidence level for the aggregated response.

output_valuesOptional[Dict[str, Any]]

Output data fields with aggregated responses.

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'], aggregated.confidence)

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