Toloka documentation

KnownSolution

toloka.client.task.BaseTask.KnownSolution | Source code

KnownSolution(
    self,
    *,
    output_values: Optional[Dict[str, Any]] = None,
    correctness_weight: Optional[float] = None
)

A correct response for a control or training task.

Responses have a correctness weight. For example, if correctness_weight is 0.5, then half of the error is counted to the Toloker.

Parameters Description

Parameters Type Description
output_values Optional[Dict[str, Any]]

Correct values of output fields.

correctness_weight Optional[float]

The correctness weight of the response.