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 | Type | Description |
---|---|---|
pool_id | Optional[str] | The ID of the pool containing the task. |
task_id | Optional[str] | The ID of the task. |
confidence | Optional[float] | The confidence level for the aggregated response. |
output_values | Optional[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